comparison src/video/quartz/SDL_QuartzVideo.h @ 155:2d162219f433

Date: Thu, 16 Aug 2001 21:50:51 -0500 (EST) From: Darrell Walisser <dwaliss1@purdue.edu> Subject: Patch for video bugs + Max's additions I've attached a patch for today's CVS that includes Max's virtual mouse button fix as well as some other changes: -building mode list correctly now (had duplicate entries, was unsorted) -switching modes correctly now (wasn't destroying previous mode) -releasing memory correctly in event loop
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Aug 2001 23:57:39 +0000
parents bd6b0a910a65
children 4382c38dfbee
comparison
equal deleted inserted replaced
154:50d2b5305c2c 155:2d162219f433
81 CFDictionaryRef mode; 81 CFDictionaryRef mode;
82 CFDictionaryRef save_mode; 82 CFDictionaryRef save_mode;
83 CFArrayRef mode_list; 83 CFArrayRef mode_list;
84 CGDirectPaletteRef palette; 84 CGDirectPaletteRef palette;
85 NSOpenGLContext *gl_context; 85 NSOpenGLContext *gl_context;
86 int width, height, bpp; 86 Uint32 width, height, bpp;
87 Uint32 flags; 87 Uint32 flags;
88 SDL_bool video_is_set; /* tell if the video mode was set */
88 89
89 /* Window-only fields */ 90 /* Window-only fields */
90 NSWindow *window; 91 NSWindow *window;
91 NSQuickDrawView *view; 92 NSQuickDrawView *view;
92 93
103 #define gl_context (this->hidden->gl_context) 104 #define gl_context (this->hidden->gl_context)
104 #define device_width (this->hidden->width) 105 #define device_width (this->hidden->width)
105 #define device_height (this->hidden->height) 106 #define device_height (this->hidden->height)
106 #define device_bpp (this->hidden->bpp) 107 #define device_bpp (this->hidden->bpp)
107 #define mode_flags (this->hidden->flags) 108 #define mode_flags (this->hidden->flags)
109 #define video_set (this->hidden->video_is_set)
108 #define window (this->hidden->window) 110 #define window (this->hidden->window)
109 #define windowView (this->hidden->view) 111 #define windowView (this->hidden->view)
110 112
111 /* Interface for hardware fill not (yet) in the public API */ 113 /* Interface for hardware fill not (yet) in the public API */
112 int CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y, 114 int CGSDisplayHWFill (CGDirectDisplayID id, unsigned int x, unsigned int y,