comparison src/video/quartz/SDL_QuartzVideo.h @ 158:4382c38dfbee

Date: Tue, 21 Aug 2001 03:50:01 +0200 From: Max Horn <max@quendi.de> Subject: New patch for OS X Attached a .patch file for SDL/OSX with some nice bug fixes / enhancments. * fixes the activation issues, which also caused the window to be always drawn like an inactive. The close/minimize widgets now are animated properly, too. * the menu items are automatically adjusted to use the app name instead of just "SDL App". I did this so that we really can use one central SDLMain.nib file, w/o requiring developers to make a copy of it and adjust it. * libSDLMain now contains the proper cocoa code, not as before the carbon code. This means apps no longer have to carry a copy of SDLMain.m/SDLMain.h * revamped configure.in to properly build a Cocoa/Quartz SDL lib, not a Carbon based SDL lib
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Aug 2001 07:19:59 +0000
parents 2d162219f433
children e8157fcb3114
comparison
equal deleted inserted replaced
157:de04f423389a 158:4382c38dfbee
42 - Retained windows don't draw their title bar quite right (OS Bug) 42 - Retained windows don't draw their title bar quite right (OS Bug)
43 - Should I do depth switching for windowed modes? - No, not usually. 43 - Should I do depth switching for windowed modes? - No, not usually.
44 - Launch times are slow, maybe prebinding will help 44 - Launch times are slow, maybe prebinding will help
45 - Direct framebuffer access has some artifacts, maybe a driver issue 45 - Direct framebuffer access has some artifacts, maybe a driver issue
46 - Cursor in 8 bit modes is screwy 46 - Cursor in 8 bit modes is screwy
47 - Modifier + mouse-down maps alternate mouse button, but if modifier is released
48 before mouse button, corresponding mouse-up event is not generated.
49 - Clicking in content activates app, but doesn't generate the activate event,
50 and subsequent switches generate no activate/deactivate events! (OS Bug I hope)
51 */ 47 */
52 48
53 #include <ApplicationServices/ApplicationServices.h> 49 #include <ApplicationServices/ApplicationServices.h>
54 #include <OpenGL/OpenGL.h> 50 #include <OpenGL/OpenGL.h>
55 #include <Cocoa/Cocoa.h> 51 #include <Cocoa/Cocoa.h>
105 #define device_width (this->hidden->width) 101 #define device_width (this->hidden->width)
106 #define device_height (this->hidden->height) 102 #define device_height (this->hidden->height)
107 #define device_bpp (this->hidden->bpp) 103 #define device_bpp (this->hidden->bpp)
108 #define mode_flags (this->hidden->flags) 104 #define mode_flags (this->hidden->flags)
109 #define video_set (this->hidden->video_is_set) 105 #define video_set (this->hidden->video_is_set)
110 #define window (this->hidden->window) 106 #define qz_window (this->hidden->window)
111 #define windowView (this->hidden->view) 107 #define windowView (this->hidden->view)
112 108
113 /* Interface for hardware fill not (yet) in the public API */ 109 /* Interface for hardware fill not (yet) in the public API */
114 int CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y, 110 int CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y,
115 unsigned int w, unsigned int h, unsigned int color); 111 unsigned int w, unsigned int h, unsigned int color);