X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fmain.cpp;h=9e1c1102eb405a6b2c5c5609115fc6249edf198c;hb=63b9ec8b134f9b42e899bec74bc0e6335d3afb47;hp=33a7b37edb679baba5a81e7ea318d0ef3a11e27c;hpb=71a5b4590a18bf663b97b8a52078754899dcf345;p=lugaru.git diff --git a/Source/main.cpp b/Source/main.cpp index 33a7b37..9e1c110 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -111,11 +111,6 @@ static void GLAPIENTRY glDeleteTextures_doNothing(GLsizei n, const GLuint *textu } #endif // __MINGW32__ -#ifdef MessageBox -#undef MessageBox -#endif -#define MessageBox(hwnd,text,title,flags) STUBBED("msgbox") - // Menu defs int kContextWidth; @@ -749,7 +744,7 @@ int main(int argc, char **argv) LOG(e); - MessageBox(g_windowHandle, error.what(), "ERROR", MB_OK | MB_ICONEXCLAMATION); + SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Exception catched", error.what(), NULL); return -1; }