Slightly better mac fullscreen fix

master
Allen Webster 2020-01-21 12:57:42 -08:00
parent d6b0387f0d
commit b2bdfbd05d
1 changed files with 4 additions and 2 deletions

View File

@ -612,7 +612,9 @@ mac_toggle_fullscreen(void){
- (void)windowDidResize:(NSNotification*)notification{ - (void)windowDidResize:(NSNotification*)notification{
mac_resize(mac_vars.window); mac_resize(mac_vars.window);
[mac_vars.view display]; if (!mac_vars.do_toggle){
[mac_vars.view display];
}
} }
- (void)windowDidMiniaturize:(NSNotification*)notification{ - (void)windowDidMiniaturize:(NSNotification*)notification{
@ -824,8 +826,8 @@ mac_toggle_fullscreen(void){
// NOTE(yuval): Toggle full screen // NOTE(yuval): Toggle full screen
MacProfileScope("Toggle Full Screen"){ MacProfileScope("Toggle Full Screen"){
if (mac_vars.do_toggle){ if (mac_vars.do_toggle){
mac_vars.do_toggle = false;
mac_toggle_fullscreen(); mac_toggle_fullscreen();
mac_vars.do_toggle = false;
} }
} }