Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.h Sat Aug 18 22:24:19 2001 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.h Sun Aug 19 23:57:39 2001 +0000 @@ -83,8 +83,9 @@ CFArrayRef mode_list; CGDirectPaletteRef palette; NSOpenGLContext *gl_context; - int width, height, bpp; + Uint32 width, height, bpp; Uint32 flags; + SDL_bool video_is_set; /* tell if the video mode was set */ /* Window-only fields */ NSWindow *window; @@ -105,6 +106,7 @@ #define device_height (this->hidden->height) #define device_bpp (this->hidden->bpp) #define mode_flags (this->hidden->flags) +#define video_set (this->hidden->video_is_set) #define window (this->hidden->window) #define windowView (this->hidden->view)