From 3849c8488c1a0b45f66549502167051a602abffd Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Thu, 1 Aug 2013 10:54:53 +0400 Subject: [PATCH] Use SDL_False instead of -1 --- extern/sdl4ogre/sdlwindowhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/sdl4ogre/sdlwindowhelper.cpp b/extern/sdl4ogre/sdlwindowhelper.cpp index 79a214753..f819043cf 100644 --- a/extern/sdl4ogre/sdlwindowhelper.cpp +++ b/extern/sdl4ogre/sdlwindowhelper.cpp @@ -21,7 +21,7 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h, struct SDL_SysWMinfo wmInfo; SDL_VERSION(&wmInfo.version); - if (SDL_GetWindowWMInfo(mSDLWindow, &wmInfo) == -1) + if (SDL_GetWindowWMInfo(mSDLWindow, &wmInfo) == SDL_FALSE) throw std::runtime_error("Couldn't get WM Info!"); Ogre::String winHandle;