mirror of https://github.com/OpenTTD/OpenTTD
Change: [OSX] Recreate backing store if the colour profile of the screen (or the screen) the game window is one changes.
This will result in changing colours if moving OpenTTD from one screen to another, but should avoid performance problems if the window is moved.pull/7746/head
parent
994664dec5
commit
ed6a427fcc
|
@ -271,6 +271,7 @@ uint QZ_ListModes(OTTD_Point *modes, uint max_modes, CGDirectDisplayID display_i
|
||||||
|
|
||||||
- (BOOL)windowShouldClose:(id)sender;
|
- (BOOL)windowShouldClose:(id)sender;
|
||||||
- (void)windowDidEnterFullScreen:(NSNotification *)aNotification;
|
- (void)windowDidEnterFullScreen:(NSNotification *)aNotification;
|
||||||
|
- (void)windowDidChangeScreenProfile:(NSNotification *)aNotification;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1360,6 +1360,11 @@ static const char *Utf8AdvanceByUtf16Units(const char *str, NSUInteger count)
|
||||||
[ e release ];
|
[ e release ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/** The colour profile of the screen the window is on changed. */
|
||||||
|
- (void)windowDidChangeScreenProfile:(NSNotification *)aNotification
|
||||||
|
{
|
||||||
|
if (!driver->setup) driver->WindowResized();
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue