forked from mirror/OpenTTD
(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
This commit is contained in:
2
window.c
2
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user