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 | 208e258f4ce57ade70145db297a9b62fba6964b3 (patch) | |
tree | ff7fa2247d12cb30d71d1ac2a8941d2af01165f8 /window.h | |
parent | db665677992de73be63e68ffed09c60907423f98 (diff) | |
download | openttd-208e258f4ce57ade70145db297a9b62fba6964b3.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); |