mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r7414) -Fix: Immediately invalidate the resize widget when clicked, instead of when started to drag
This commit is contained in:
parent
dc6eca9e16
commit
5b9f884cd0
1
window.c
1
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) {
|
if (w->desc_flags & WDF_RESIZABLE && wi->type == WWT_RESIZEBOX) {
|
||||||
StartWindowSizing(w);
|
StartWindowSizing(w);
|
||||||
|
InvalidateWidget(w, e.we.click.widget);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue