Fixed bug #67
authorSam Lantinga
Tue, 14 Mar 2006 07:40:33 +0000
changeset 1527ce84e28c2c07
parent 1526 89f90f32f6c0
child 1528 ff3322d66771
Fixed bug #67
Re-enable OpenGL window resetting code for the windib driver
src/video/wincommon/SDL_wingl.c
     1.1 --- a/src/video/wincommon/SDL_wingl.c	Tue Mar 14 07:06:06 2006 +0000
     1.2 +++ b/src/video/wincommon/SDL_wingl.c	Tue Mar 14 07:40:33 2006 +0000
     1.3 @@ -38,10 +38,10 @@
     1.4  {
     1.5  	int status = 0;
     1.6  
     1.7 -#if 0 /* This doesn't work with DirectX code (see CVS comments) */
     1.8  #ifndef _WIN32_WCE /* FIXME WinCE needs the UNICODE version of CreateWindow() */
     1.9 +	/* This doesn't work with DirectX code (see CVS comments) */
    1.10  	/* If we were passed a window, then we can't create a new one */
    1.11 -	if ( !SDL_windowid ) {
    1.12 +	if ( !SDL_windowid && SDL_strcmp(this->name, "windib") == 0 ) {
    1.13  		/* Save the existing window attributes */
    1.14  		LONG style;
    1.15  		RECT rect = { 0, 0, 0, 0 };
    1.16 @@ -66,7 +66,6 @@
    1.17  		}
    1.18  	} else
    1.19  #endif /* !_WIN32_WCE */
    1.20 -#endif
    1.21  	{
    1.22  		SDL_SetError("Unable to reset window for OpenGL context");
    1.23  		status = -1;