From e552eccaa45df83ea8f1d3876ac33cfd8b852939 Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Wed, 31 Jul 2013 23:26:46 +0400 Subject: [PATCH] Fixed endless message loop after trying to resize window on OS X --- extern/sdl4ogre/sdlinputwrapper.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extern/sdl4ogre/sdlinputwrapper.cpp b/extern/sdl4ogre/sdlinputwrapper.cpp index a30f10d6a..a6c0e1ccf 100644 --- a/extern/sdl4ogre/sdlinputwrapper.cpp +++ b/extern/sdl4ogre/sdlinputwrapper.cpp @@ -119,21 +119,21 @@ namespace SFO int w,h; SDL_GetWindowSize(mSDLWindow, &w, &h); // TODO: Fix Ogre to handle this more consistently -#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 - mOgreWindow->windowMovedOrResized(); -#else +#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX mOgreWindow->resize(w, h); +#else + mOgreWindow->windowMovedOrResized(); #endif if (mWindowListener) mWindowListener->windowResized(evt.window.data1, evt.window.data2); case SDL_WINDOWEVENT_RESIZED: // TODO: Fix Ogre to handle this more consistently - #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 - mOgreWindow->windowMovedOrResized(); - #else +#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX mOgreWindow->resize(evt.window.data1, evt.window.data2); - #endif +#else + mOgreWindow->windowMovedOrResized(); +#endif if (mWindowListener) mWindowListener->windowResized(evt.window.data1, evt.window.data2); break;