mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-01-11 05:06:05 +00:00
Fixed crash if app delegate method is called when SDL isn't initialized
This commit is contained in:
parent
9dbbf0a2f7
commit
d211da75ac
@ -284,7 +284,10 @@ static void Cocoa_DispatchEvent(NSEvent *theEvent)
|
||||
|
||||
- (void)screenParametersChanged:(NSNotification *)aNotification
|
||||
{
|
||||
Cocoa_UpdateDisplays(SDL_GetVideoDevice());
|
||||
SDL_VideoDevice *device = SDL_GetVideoDevice();
|
||||
if (device) {
|
||||
Cocoa_UpdateDisplays(device);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)localeDidChange:(NSNotification *)notification
|
||||
|
Loading…
x
Reference in New Issue
Block a user