diff src/video/wincommon/SDL_lowvideo.h @ 335:bc4d50d2edd9

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Wed, 10 Apr 2002 02:14:33 +0000
parents 1b5457c0a8ad
children 518ffd98a8f6
line wrap: on
line diff
--- 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)				\