bugfix for compile on windows

This commit is contained in:
Mark Vejvoda 2011-11-02 20:05:15 +00:00
parent bc7eda930d
commit 5c9f3484ec

View File

@ -64,6 +64,20 @@ bool Window::masterserverMode = false;
// ========== PUBLIC ========== // ========== PUBLIC ==========
#ifdef WIN32
static HWND GetSDLWindow()
{
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if (SDL_GetWMInfo(&info) == -1)
return NULL;
return info.window;
}
#endif
Window::Window() { Window::Window() {
for(int idx = 0; idx < mbCount; idx++) { for(int idx = 0; idx < mbCount; idx++) {
lastMouseDown[idx] = 0; lastMouseDown[idx] = 0;
@ -403,20 +417,6 @@ void Window::setupGraphicsScreen(int depthBits, int stencilBits, bool hardware_a
} }
} }
#ifdef WIN32
static HWND GetSDLWindow()
{
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if (SDL_GetWMInfo(&info) == -1)
return NULL;
return info.window;
}
#endif
void Window::toggleFullscreen() { void Window::toggleFullscreen() {
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__); if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);