Merge pull request #247 from adrian17/border_flash_fix

Full fix for #195 (border flash bug)
This commit is contained in:
Ted John 2014-07-29 23:38:12 +01:00
commit 1ffcbde7a1
3 changed files with 7 additions and 5 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;
@ -1360,4 +1362,4 @@ void window_resize_gui(int width, int height)
exitWind->x = width - 40;
exitWind->y = height - 64;
}
}
}

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;