summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-04-07 00:59:54 +0000
committerDarkvater <Darkvater@openttd.org>2005-04-07 00:59:54 +0000
commit34811a332e940d1f214de76141f69f72dcbf5af0 (patch)
treee0db387aa35ff5dee722b1621502fa8ed7b85a00 /window.c
parent39c4c70c68c510f4de293880fbda0ceac2fcbcef (diff)
downloadopenttd-34811a332e940d1f214de76141f69f72dcbf5af0.tar.xz
(svn r2161) - Fix: When resizing a window, the button is also visibly depressed
- CodeChange: Use images as arrows in the scenario-date scroller, looks better - Feature: Clicked buttons with images/text now visibly depress their contents when pressed (eg it really seems like the button is moving) - Fix: Fix sprite offsets of the arrow sprites in openttd.grf
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 2bf8a154a..c5bc834ba 100644
--- a/window.c
+++ b/window.c
@@ -1005,6 +1005,7 @@ static bool HandleWindowDragging(void)
/* Stop the sizing if the left mouse button was released */
if (!_left_button_down) {
w->flags4 &= ~WF_SIZING;
+ SetWindowDirty(w);
break;
}
@@ -1111,6 +1112,7 @@ Window *StartWindowSizing(Window *w)
w = BringWindowToFront(w);
DeleteWindowById(WC_DROPDOWN_MENU, 0);
+ SetWindowDirty(w);
return w;
}