summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-07 12:57:53 +0000
committerDarkvater <darkvater@openttd.org>2006-12-07 12:57:53 +0000
commit5b9f884cd08091f29b889887a3c7e30a6ab0c7c7 (patch)
tree72f2261cc5f86c725dff7859d54397ee679c2d71
parentdc6eca9e16748a6734d275bb0aa26a9b1958ba8c (diff)
downloadopenttd-5b9f884cd08091f29b889887a3c7e30a6ab0c7c7.tar.xz
(svn r7414) -Fix: Immediately invalidate the resize widget when clicked, instead of when started to drag
-rw-r--r--window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c
index 422da787c..3a89dda76 100644
--- a/window.c
+++ b/window.c
@@ -132,6 +132,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y)
if (w->desc_flags & WDF_RESIZABLE && wi->type == WWT_RESIZEBOX) {
StartWindowSizing(w);
+ InvalidateWidget(w, e.we.click.widget);
return;
}