diff options
author | bjarni <bjarni@openttd.org> | 2006-10-07 14:30:13 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-10-07 14:30:13 +0000 |
commit | bc1070654a4187273e38fcce5361e5606f33b1d9 (patch) | |
tree | ff7fa2247d12cb30d71d1ac2a8941d2af01165f8 /window.h | |
parent | e1ad1102f2692ff4d03986f25f6880b69b6b82ec (diff) | |
download | openttd-bc1070654a4187273e38fcce5361e5606f33b1d9.tar.xz |
(svn r6680) -Codechange r6679: [train build window] only generate the list when the window data is invalidated or the window is generated, not on each redraw
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -394,6 +394,7 @@ typedef struct { byte railtype; byte sel_index; byte show_engine_wagon; + bool data_invalidated; EngineID sel_engine; EngineID rename_engine; EngineID *engines; @@ -789,6 +790,7 @@ int GetMenuItemIndex(const Window *w, int x, int y); void InputLoop(void); void UpdateWindows(void); void InvalidateWidget(const Window *w, byte widget_index); +void InvalidateThisWindowData(Window *w); void InvalidateWindowData(WindowClass cls, WindowNumber number); void RaiseWindowButtons(Window *w); void RelocateAllWindows(int neww, int newh); |