Full fix for #195 (border flash bug)

This commit is contained in:
adrian17 2014-07-29 22:48:58 +02:00
parent 5d255fae42
commit a34430e04c
3 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;