diff options
author | belugas <belugas@openttd.org> | 2007-12-08 01:20:47 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-12-08 01:20:47 +0000 |
commit | 544325590c87cbcb6645b2b67c194a892e56ced7 (patch) | |
tree | fa5bb81db42708ef19334b597f9946c859de2ebc /src/window.cpp | |
parent | ecb9382c7e96da400bb3346dcd7e134f0146fee4 (diff) | |
download | openttd-544325590c87cbcb6645b2b67c194a892e56ced7.tar.xz |
(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp index ef172230b..19b5ccc7f 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -85,9 +85,9 @@ void Window::RaiseButtons() uint i; for (i = 0; i < this->widget_count; i++) { - if (IsWidgetLowered(i)) { - RaiseWidget(i); - InvalidateWidget(i); + if (this->IsWidgetLowered(i)) { + this->RaiseWidget(i); + this->InvalidateWidget(i); } } } @@ -1041,7 +1041,7 @@ static void DecreaseWindowCounters() if (w->flags4&WF_TIMEOUT_MASK && !(--w->flags4&WF_TIMEOUT_MASK)) { CallWindowEventNP(w, WE_TIMEOUT); - if (w->desc_flags & WDF_UNCLICK_BUTTONS) RaiseWindowButtons(w); + if (w->desc_flags & WDF_UNCLICK_BUTTONS) w->RaiseButtons(); } } } |