*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Wed, 10 Apr 2002 02:14:33 +0000
changeset 335 bc4d50d2edd9
parent 334 f65715bd8ad8
child 336 745873ea091f
*** empty log message ***
src/video/wincommon/SDL_lowvideo.h
src/video/wincommon/SDL_sysevents.c
--- a/src/video/wincommon/SDL_lowvideo.h	Tue Apr 09 23:49:06 2002 +0000
+++ b/src/video/wincommon/SDL_lowvideo.h	Wed Apr 10 02:14:33 2002 +0000
@@ -37,12 +37,14 @@
 
 #define WINDIB_FULLSCREEN()						\
 (									\
+	SDL_VideoSurface &&						\
 	((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \
 	(((SDL_VideoSurface->flags & SDL_OPENGL   ) == SDL_OPENGL    ) || \
 	 (strcmp(this->name, "windib") == 0))				\
 )
 #define DDRAW_FULLSCREEN() 						\
 (									\
+	SDL_VideoSurface &&						\
 	((SDL_VideoSurface->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && \
 	((SDL_VideoSurface->flags & SDL_OPENGL    ) != SDL_OPENGL    ) && \
 	(strcmp(this->name, "directx") == 0)				\
--- a/src/video/wincommon/SDL_sysevents.c	Tue Apr 09 23:49:06 2002 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Wed Apr 10 02:14:33 2002 +0000
@@ -190,10 +190,6 @@
 			BOOL minimized;
 			Uint8 appstate;
 
-			if ( ! this->screen ) {
-				/* What do we do when we get the screen? */
-				return(0);
-			}
 			minimized = HIWORD(wParam);
 			if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) {
 				/* Gain the following states */