mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #247 from adrian17/border_flash_fix
Full fix for #195 (border flash bug)
This commit is contained in:
commit
1ffcbde7a1
|
@ -377,9 +377,11 @@ rct_window *window_create(int x, int y, int width, int height, uint32 *event_han
|
|||
w->var_4B9 = -1;
|
||||
w->flags = flags;
|
||||
|
||||
// Play sound
|
||||
if (!(flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT)))
|
||||
// Play sounds and flash the window
|
||||
if (!(flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT))){
|
||||
w->flags |= WF_WHITE_BORDER_MASK;
|
||||
sound_play_panned(SOUND_WINDOW_OPEN, x + (width / 2));
|
||||
}
|
||||
|
||||
w->number = 0;
|
||||
w->x = x;
|
||||
|
|
|
@ -176,7 +176,7 @@ void window_guest_list_open()
|
|||
window->min_height = 330;
|
||||
window->max_width = 500;
|
||||
window->max_height = 450;
|
||||
window->flags = WF_RESIZABLE;
|
||||
window->flags |= WF_RESIZABLE;
|
||||
window->colours[0] = 1;
|
||||
window->colours[1] = 15;
|
||||
window->colours[2] = 15;
|
||||
|
|
|
@ -160,7 +160,7 @@ void window_ride_list_open()
|
|||
window->min_height = 240;
|
||||
window->max_width = 400;
|
||||
window->max_height = 450;
|
||||
window->flags = WF_RESIZABLE;
|
||||
window->flags |= WF_RESIZABLE;
|
||||
window->colours[0] = 1;
|
||||
window->colours[1] = 26;
|
||||
window->colours[2] = 26;
|
||||
|
|
Loading…
Reference in New Issue