diff src/video/gem/SDL_gemvideo.c @ 926:83db694556eb

Give mouse position relative to window position, and do not generate mouse button event if outside of the window
author Patrice Mandin <patmandin@gmail.com>
date Tue, 10 Aug 2004 18:53:38 +0000
parents 15ff92ae7e1b
children 51ec8fc8bedb
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c	Mon Aug 09 11:53:14 2004 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Tue Aug 10 18:53:38 2004 +0000
@@ -400,6 +400,7 @@
 	GEM_handle = -1;
 	GEM_locked = SDL_FALSE;
 	GEM_win_fulled = SDL_FALSE;
+	GEM_fullscreen = SDL_FALSE;
 
 	VDI_screen = NULL;
 	VDI_pitch = VDI_w * VDI_pixelsize;
@@ -641,6 +642,8 @@
 		} else {
 			modeflags |= SDL_SWSURFACE;
 		}
+
+		GEM_fullscreen = SDL_TRUE;
 	} else {
 		int old_win_type;
 		short x2,y2,w2,h2;
@@ -701,6 +704,8 @@
 	
 		/* Open the window */
 		wind_open(GEM_handle,x2,y2,w2,h2);
+
+		GEM_fullscreen = SDL_FALSE;
 	}
 
 	/* Set up the new mode framebuffer */