bugfix for compile on windows

This commit is contained in:
Mark Vejvoda 2011-11-02 20:05:15 +00:00
parent bc7eda930d
commit 5c9f3484ec
1 changed files with 14 additions and 14 deletions

View File

@ -64,6 +64,20 @@ bool Window::masterserverMode = false;
// ========== 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() {
for(int idx = 0; idx < mbCount; idx++) {
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() {
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);