Commit a809f232 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #67

Re-enable OpenGL window resetting code for the windib driver

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401531
parent 710a6bc2
......@@ -38,10 +38,10 @@ static int WIN_GL_ResetWindow(_THIS)
{
int status = 0;
#if 0 /* This doesn't work with DirectX code (see CVS comments) */
#ifndef _WIN32_WCE /* FIXME WinCE needs the UNICODE version of CreateWindow() */
/* This doesn't work with DirectX code (see CVS comments) */
/* If we were passed a window, then we can't create a new one */
if ( !SDL_windowid ) {
if ( !SDL_windowid && SDL_strcmp(this->name, "windib") == 0 ) {
/* Save the existing window attributes */
LONG style;
RECT rect = { 0, 0, 0, 0 };
......@@ -66,7 +66,6 @@ static int WIN_GL_ResetWindow(_THIS)
}
} else
#endif /* !_WIN32_WCE */
#endif
{
SDL_SetError("Unable to reset window for OpenGL context");
status = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment