revision 757:2780bc393e7c
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 757:2780bc393e7c |
parent | 756:38385124df7a |
child | 758:99ae000d4e09 |
author | nkeynes |
date | Mon Jul 21 00:16:09 2008 +0000 (15 years ago) |
Minor fixes for Tiger build
src/cocoaui/cocoa_win.c | view | annotate | diff | log | ||
src/drivers/video_nsgl.c | view | annotate | diff | log |
1.1 --- a/src/cocoaui/cocoa_win.c Mon Jul 21 00:09:46 2008 +00001.2 +++ b/src/cocoaui/cocoa_win.c Mon Jul 21 00:16:09 2008 +00001.3 @@ -20,6 +20,23 @@1.4 #include "lxdream.h"1.5 #include <ApplicationServices/ApplicationServices.h>1.7 +@interface NSWindow (OSX10_5_and_later)1.8 +#ifndef CGFLOAT_DEFINED1.9 +# ifdef __LP64__1.10 + typedef double CGFloat;1.11 +# else1.12 + typedef float CGFloat;1.13 +# endif1.14 +#endif1.15 +- (void)setAutorecalculatesContentBorderThickness:(BOOL)b forEdge:(NSRectEdge)e;1.16 +- (void)setContentBorderThickness:(CGFloat)b forEdge:(NSRectEdge)e;1.17 +@end1.18 +1.19 +1.20 +#if NSAppKitVersionNumber > NSAppKitVersionNumber10_41.21 +1.22 +#endif1.23 +1.24 #define STATUSBAR_HEIGHT 251.25 #define STATUS_TEXT_HEIGHT 221.27 @@ -127,8 +144,10 @@1.28 [[self contentView] addSubview: status];1.29 [self makeFirstResponder: video];1.31 - [self setAutorecalculatesContentBorderThickness: NO forEdge: NSMinYEdge ];1.32 - [self setContentBorderThickness: STATUSBAR_HEIGHT forEdge: NSMinYEdge];1.33 + if( [self respondsToSelector:@selector(setAutorecalculatesContentBorderThickness:forEdge:)] )1.34 + [self setAutorecalculatesContentBorderThickness: NO forEdge: NSMinYEdge ];1.35 + if( [self respondsToSelector:@selector(setContentBorderThickness:forEdge:)] )1.36 + [self setContentBorderThickness: STATUSBAR_HEIGHT forEdge: NSMinYEdge];1.38 // Share the app delegate for the purposes of keeping it in one place1.39 [self setDelegate: [NSApp delegate]];
2.1 --- a/src/drivers/video_nsgl.c Mon Jul 21 00:09:46 2008 +00002.2 +++ b/src/drivers/video_nsgl.c Mon Jul 21 00:16:09 2008 +00002.3 @@ -17,6 +17,7 @@2.4 */2.6 #include <AppKit/NSOpenGL.h>2.7 +#include <Foundation/NSAutoreleasePool.h>2.8 #include "drivers/video_nsgl.h"2.9 #include "drivers/video_gl.h"2.10 #include "pvr2/glutil.h"
.