src/video/windx5/SDL_dx5video.c
changeset 1280 f61f045343d3
parent 1145 d31afac94eff
child 1288 ea3888b472bf
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Sat Jan 28 05:47:11 2006 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Sun Jan 29 06:11:38 2006 +0000
     1.3 @@ -1133,11 +1133,11 @@
     1.4  		}
     1.5  
     1.6  		/* DJM: Don't piss of anyone who has setup his own window */
     1.7 -		if ( SDL_windowid == NULL )
     1.8 +		if ( !SDL_windowid )
     1.9  			SetWindowLong(SDL_Window, GWL_STYLE, style);
    1.10  
    1.11  		/* Resize the window (copied from SDL WinDIB driver) */
    1.12 -		if ( SDL_windowid == NULL ) {
    1.13 +		if ( !SDL_windowid ) {
    1.14  			HWND top;
    1.15  			UINT swp_flags;
    1.16  			const char *window = getenv("SDL_VIDEO_WINDOW_POS");
    1.17 @@ -1223,7 +1223,7 @@
    1.18  #endif
    1.19  	}
    1.20  	/* DJM: Don't piss of anyone who has setup his own window */
    1.21 -	if ( SDL_windowid == NULL )
    1.22 +	if ( !SDL_windowid )
    1.23  		SetWindowLong(SDL_Window, GWL_STYLE, style);
    1.24  
    1.25  	/* Set DirectDraw sharing mode.. exclusive when fullscreen */