diff options
author | rubidium <rubidium@openttd.org> | 2008-05-10 12:30:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-10 12:30:27 +0000 |
commit | 935434333badb8376f9dde535ddc50c18e9af3aa (patch) | |
tree | a5bdbc9159ef2a9e4438fbff08ec11d3adba7744 /src/main_gui.cpp | |
parent | f23026cce8fa49974e3dd06e00dd073cb45f906b (diff) | |
download | openttd-935434333badb8376f9dde535ddc50c18e9af3aa.tar.xz |
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index ab81405ff..5ad0c277f 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -190,7 +190,7 @@ bool DoZoomInOutWindow(int how, Window *w) } w->SetDirty(); /* Update the windows that have zoom-buttons to perhaps disable their buttons */ - SendWindowMessageClass(w->window_class, how, w->window_number, 0); + InvalidateThisWindowData(w); return true; } @@ -390,9 +390,9 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) ZoomInOrOutToCursorWindow(e->we.wheel.wheel < 0, w); break; - case WE_MESSAGE: + case WE_INVALIDATE_DATA: /* Forward the message to the appropiate toolbar (ingame or scenario editor) */ - SendWindowMessage(WC_MAIN_TOOLBAR, 0, e->we.message.msg, e->we.message.wparam, e->we.message.lparam); + InvalidateWindowData(WC_MAIN_TOOLBAR, 0, e->we.invalidate.data); break; } } |