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
commit6049734c069365078564a30564512b4482289b7d (patch)
tree72f2261cc5f86c725dff7859d54397ee679c2d71
parent5b4d3daf0ee7d1eb91ceaabca462c9df28986ca7 (diff)
downloadopenttd-6049734c069365078564a30564512b4482289b7d.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;
}