Search
lxdream.org :: lxdream :: r757:2780bc393e7c
lxdream 0.9.1
released Jun 29
Download Now
changeset757:2780bc393e7c
parent756:38385124df7a
child758:99ae000d4e09
authornkeynes
dateMon Jul 21 00:16:09 2008 +0000 (11 years ago)
Minor fixes for Tiger build
src/cocoaui/cocoa_win.c
src/drivers/video_nsgl.c
1.1 --- a/src/cocoaui/cocoa_win.c Mon Jul 21 00:09:46 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Mon Jul 21 00:16:09 2008 +0000
1.3 @@ -20,6 +20,23 @@
1.4 #include "lxdream.h"
1.5 #include <ApplicationServices/ApplicationServices.h>
1.6
1.7 +@interface NSWindow (OSX10_5_and_later)
1.8 +#ifndef CGFLOAT_DEFINED
1.9 +# ifdef __LP64__
1.10 + typedef double CGFloat;
1.11 +# else
1.12 + typedef float CGFloat;
1.13 +# endif
1.14 +#endif
1.15 +- (void)setAutorecalculatesContentBorderThickness:(BOOL)b forEdge:(NSRectEdge)e;
1.16 +- (void)setContentBorderThickness:(CGFloat)b forEdge:(NSRectEdge)e;
1.17 +@end
1.18 +
1.19 +
1.20 +#if NSAppKitVersionNumber > NSAppKitVersionNumber10_4
1.21 +
1.22 +#endif
1.23 +
1.24 #define STATUSBAR_HEIGHT 25
1.25 #define STATUS_TEXT_HEIGHT 22
1.26
1.27 @@ -127,8 +144,10 @@
1.28 [[self contentView] addSubview: status];
1.29 [self makeFirstResponder: video];
1.30
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.37
1.38 // Share the app delegate for the purposes of keeping it in one place
1.39 [self setDelegate: [NSApp delegate]];
2.1 --- a/src/drivers/video_nsgl.c Mon Jul 21 00:09:46 2008 +0000
2.2 +++ b/src/drivers/video_nsgl.c Mon Jul 21 00:16:09 2008 +0000
2.3 @@ -17,6 +17,7 @@
2.4 */
2.5
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"
.