Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Cocoa_ShowMessageBox() should call Cocoa_RegisterApp().

Otherwise, message boxes can fail if SDL_Init(SDL_INIT_VIDEO) wasn't completed.
  • Loading branch information
icculus committed Nov 2, 2012
1 parent 61c1035 commit fd7e6d4cf2efc408b32702299003ff0a384a2c2e

File 2 of 2 in fd7e6d4

@@ -37,6 +37,8 @@
int
Cocoa_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{
Cocoa_RegisterApp();

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

NSAlert* alert = [[NSAlert alloc] init];

0 comments on commit fd7e6d4

Please sign in to comment.