comparison src/video/quartz/SDL_QuartzVideo.m @ 117:aac75d5f7869

Fixed fullscreen mouse events on MacOS X Fixed crash when quitting fullscreen mode on MacOS X
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Jul 2001 20:57:24 +0000
parents bd6b0a910a65
children 2d162219f433
comparison
equal deleted inserted replaced
116:e811db89bfbe 117:aac75d5f7869
229 229
230 /* Restore original screen resolution */ 230 /* Restore original screen resolution */
231 if ( mode_flags & SDL_FULLSCREEN ) { 231 if ( mode_flags & SDL_FULLSCREEN ) {
232 CGDisplaySwitchToMode (display_id, save_mode); 232 CGDisplaySwitchToMode (display_id, save_mode);
233 CGDisplayRelease (display_id); 233 CGDisplayRelease (display_id);
234 this->screen->pixels = NULL;
234 } 235 }
235 /* Release window mode data structures */ 236 /* Release window mode data structures */
236 else { 237 else {
237 if ( (mode_flags & SDL_OPENGL) == 0 ) { 238 if ( (mode_flags & SDL_OPENGL) == 0 ) {
238 UnlockPortBits ( [ windowView qdPort ] ); 239 UnlockPortBits ( [ windowView qdPort ] );