mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Add GUI option for switching to the RCT1 colour scheme, along with proper invalidation of the affected windows
This commit is contained in:
@@ -717,6 +717,17 @@ void window_invalidate_by_number(rct_windowclass cls, rct_windownumber number)
|
||||
window_invalidate(w);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates all windows.
|
||||
*/
|
||||
void window_invalidate_all()
|
||||
{
|
||||
rct_window* w;
|
||||
|
||||
for (w = g_window_list; w < RCT2_NEW_WINDOW; w++)
|
||||
window_invalidate(w);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates the specified widget of a window.
|
||||
* rct2: 0x006EC402
|
||||
@@ -2116,4 +2127,4 @@ void window_move_and_snap(rct_window *w, int newWindowX, int newWindowY, int sna
|
||||
int window_can_resize(rct_window *w)
|
||||
{
|
||||
return (w->flags & WF_RESIZABLE) && (w->min_width != w->max_width || w->min_height != w->max_height);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user