equal
deleted
inserted
replaced
44 # undef false |
44 # undef false |
45 # undef true |
45 # undef true |
46 # endif |
46 # endif |
47 #endif |
47 #endif |
48 |
48 |
|
49 |
49 #include "../stdafx.h" |
50 #include "../stdafx.h" |
50 #include "../openttd.h" |
|
51 #include "../debug.h" |
51 #include "../debug.h" |
52 #include "../functions.h" |
|
53 #include "../gfx.h" |
|
54 #include "../macros.h" |
52 #include "../macros.h" |
55 #include "../sdl.h" |
|
56 #include "../window.h" |
|
57 #include "../network/network.h" |
|
58 #include "../variables.h" |
|
59 #include "../os/macosx/splash.h" |
53 #include "../os/macosx/splash.h" |
60 |
|
61 #include "cocoa_v.h" |
54 #include "cocoa_v.h" |
62 #include "cocoa_keys.h" |
55 #include "cocoa_keys.h" |
63 |
56 |
64 #undef Point |
57 #undef Point |
65 #undef Rect |
58 #undef Rect |
|
59 |
66 |
60 |
67 |
61 |
68 /* Subclass of NSWindow to fix genie effect and support resize events */ |
62 /* Subclass of NSWindow to fix genie effect and support resize events */ |
69 @interface OTTD_QuartzWindow : NSWindow |
63 @interface OTTD_QuartzWindow : NSWindow |
70 - (void)miniaturize:(id)sender; |
64 - (void)miniaturize:(id)sender; |
160 |
154 |
161 OTTD_QuartzWindow *window; |
155 OTTD_QuartzWindow *window; |
162 NSQuickDrawView *qdview; |
156 NSQuickDrawView *qdview; |
163 |
157 |
164 #define MAX_DIRTY_RECTS 100 |
158 #define MAX_DIRTY_RECTS 100 |
165 OTTDRect dirty_rects[MAX_DIRTY_RECTS]; |
159 Rect dirty_rects[MAX_DIRTY_RECTS]; |
166 int num_dirty_rects; |
160 int num_dirty_rects; |
167 |
161 |
168 uint16 palette16[256]; |
162 uint16 palette16[256]; |
169 uint32 palette32[256]; |
163 uint32 palette32[256]; |
170 } _cocoa_video_data; |
164 } _cocoa_video_data; |