bugfix for compile on windows
This commit is contained in:
parent
bc7eda930d
commit
5c9f3484ec
|
@ -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__);
|
||||
|
||||
|
|
Loading…
Reference in New Issue