ifdef for win32 only code

This commit is contained in:
Mark Vejvoda
2010-04-01 07:53:07 +00:00
parent e392f3ca2f
commit 76f4b87cbb
2 changed files with 253 additions and 0 deletions

View File

@@ -226,6 +226,8 @@ void Window::setupGraphicsScreen(int depthBits, int stencilBits) {
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, newDepthBits);
}
#ifdef WIN32
static HWND GetSDLWindow()
{
SDL_SysWMinfo info;
@@ -236,6 +238,8 @@ static HWND GetSDLWindow()
return info.window;
}
#endif
void Window::toggleFullscreen() {
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);