Search
lxdream.org :: lxdream/src/cocoaui/cocoa_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_win.c
changeset 757:2780bc393e7c
prev738:0cbff49086b8
next780:4e4ea322cb84
author nkeynes
date Mon Jul 28 04:51:04 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Fix build of testsh4x86
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_win.c Tue Jul 15 06:47:49 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Mon Jul 28 04:51:04 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]];
.