comparison src/video/cybergfx/SDL_cgxmodes.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children d910939febfa
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
22 22
23 /* Utilities for getting and setting the X display mode */ 23 /* Utilities for getting and setting the X display mode */
24 24
25 #include "SDL_timer.h" 25 #include "SDL_timer.h"
26 #include "SDL_events.h" 26 #include "SDL_events.h"
27 #include "SDL_events_c.h" 27 #include "../../events/SDL_events_c.h"
28 #include "SDL_cgxvideo.h" 28 #include "SDL_cgxvideo.h"
29 #include "SDL_cgxwm_c.h" 29 #include "SDL_cgxwm_c.h"
30 #include "SDL_cgxmodes_c.h" 30 #include "SDL_cgxmodes_c.h"
31 31
32 #define CGX_DEBUG 32 #define CGX_DEBUG
270 get_real_resolution(this, &real_w, &real_h); 270 get_real_resolution(this, &real_w, &real_h);
271 271
272 CGX_DestroyWindow(this,this->screen); 272 CGX_DestroyWindow(this,this->screen);
273 set_best_resolution(this, real_w,real_h); 273 set_best_resolution(this, real_w,real_h);
274 274
275 /* Grab the mouse on the fullscreen window
276 The event handling will know when we become active, and then
277 enter fullscreen mode if we can't grab the mouse this time.
278 */
279 #if 0
280 if ( (XGrabPointer(SDL_Display, FSwindow, True, 0,
281 GrabModeAsync, GrabModeAsync,
282 FSwindow, None, CurrentTime) != GrabSuccess) ||
283 (XGrabKeyboard(SDL_Display, WMwindow, True,
284 GrabModeAsync, GrabModeAsync, CurrentTime) != 0) ) {
285 XUnmapWindow(SDL_Display, FSwindow);
286 X11_WaitUnmapped(this, FSwindow);
287 X11_QueueEnterFullScreen(this);
288 return(0);
289 }
290 #endif
291
292 currently_fullscreen = 1; 275 currently_fullscreen = 1;
293 this->screen->flags = saved_flags; 276 this->screen->flags = saved_flags;
294 277
295 CGX_CreateWindow(this,this->screen,real_w,real_h,GetCyberMapAttr(SDL_Display->RastPort.BitMap,CYBRMATTR_DEPTH),this->screen->flags); 278 CGX_CreateWindow(this,this->screen,real_w,real_h,GetCyberMapAttr(SDL_Display->RastPort.BitMap,CYBRMATTR_DEPTH),this->screen->flags);
296 279