summaryrefslogtreecommitdiff
path: root/src/video/cocoa/fullscreen.mm
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2010-12-21 15:56:02 +0000
committerplanetmaker <planetmaker@openttd.org>2010-12-21 15:56:02 +0000
commit7ab04792c501fcc605eff92d79eab5a66707e28f (patch)
treef23fb8f1f548e3130f4f05cbb0e28b597c4216b7 /src/video/cocoa/fullscreen.mm
parent574e0830f19080f668c0e358656213b64b63af4e (diff)
downloadopenttd-7ab04792c501fcc605eff92d79eab5a66707e28f.tar.xz
(svn r21574) -Codechange: [OSX] Move the variable declaration of the screen drivers to the generic class, deduplicating code
Diffstat (limited to 'src/video/cocoa/fullscreen.mm')
-rw-r--r--src/video/cocoa/fullscreen.mm11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/video/cocoa/fullscreen.mm b/src/video/cocoa/fullscreen.mm
index 9816176eb..e41849c70 100644
--- a/src/video/cocoa/fullscreen.mm
+++ b/src/video/cocoa/fullscreen.mm
@@ -149,22 +149,11 @@ bool QZ_CanDisplay8bpp()
}
class FullscreenSubdriver: public CocoaSubdriver {
- int device_width;
- int device_height;
- int device_depth;
- int window_pitch;
- void *window_buffer;
- void *pixel_buffer;
-
CGDirectDisplayID display_id; ///< 0 == main display (only support single display)
CFDictionaryRef cur_mode; ///< current mode of the display
CFDictionaryRef save_mode; ///< original mode of the display
CGDirectPaletteRef palette; ///< palette of an 8-bit display
- #define MAX_DIRTY_RECTS 100
- Rect dirty_rects[MAX_DIRTY_RECTS];
- int num_dirty_rects;
-
/* Gamma functions to try to hide the flash from a res switch
* Fade the display from normal to black