Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzWM.m @ 4065:0c76e6d1c3d6 SDL-1.2
Fixed bug #373
Patch contributed from Transgaming's Cider project
- create a window and view in fullscreen mode so the cursor can be set
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 14 Jul 2007 08:00:50 +0000 |
parents | 2780f547f5e7 |
children | 58a5055da431 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzWM.m Sat Jul 14 07:26:34 2007 +0000 +++ b/src/video/quartz/SDL_QuartzWM.m Sat Jul 14 08:00:50 2007 +0000 @@ -105,7 +105,7 @@ } BOOL QZ_IsMouseInWindow (_THIS) { - if (qz_window == nil) return YES; /*fullscreen*/ + if (qz_window == nil || (mode_flags & SDL_FULLSCREEN)) return YES; /*fullscreen*/ else { NSPoint p = [ qz_window mouseLocationOutsideOfEventStream ]; p.y -= 1.0f; /* Apparently y goes from 1 to h, not from 0 to h-1 (i.e. the "location of the mouse" seems to be defined as "the location of the top left corner of the mouse pointer's hot pixel" */