diff options
author | belugas <belugas@openttd.org> | 2007-12-08 03:10:50 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-12-08 03:10:50 +0000 |
commit | 73c58d8a409d7e5f3dbb864be893a1c0b34defd6 (patch) | |
tree | 4035aa66fcd85e5b6485927f6941345900ada009 /src/window.cpp | |
parent | b23f824f1848186dd37ee7616a1df58b439b5315 (diff) | |
download | openttd-73c58d8a409d7e5f3dbb864be893a1c0b34defd6.tar.xz |
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/window.cpp b/src/window.cpp index e64575301..958eb4475 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -97,14 +97,6 @@ void Window::HandleButtonClick(byte widget) this->InvalidateWidget(widget); } -void HandleButtonClick(Window *w, byte widget) -{ - w->LowerWidget(widget); - w->flags4 |= 5 << WF_TIMEOUT_SHL; - w->InvalidateWidget(widget); -} - - static void StartWindowDrag(Window *w); static void StartWindowSizing(Window *w); @@ -132,7 +124,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, bool double_click) case WWT_PANEL | WWB_PUSHBUTTON: /* WWT_PUSHBTN */ case WWT_IMGBTN | WWB_PUSHBUTTON: /* WWT_PUSHIMGBTN */ case WWT_TEXTBTN | WWB_PUSHBUTTON: /* WWT_PUSHTXTBTN */ - HandleButtonClick(w, e.we.click.widget); + w->HandleButtonClick(e.we.click.widget); break; } } else if (wi->type == WWT_SCROLLBAR || wi->type == WWT_SCROLL2BAR || wi->type == WWT_HSCROLLBAR) { |