(svn r15892) -Codechange: [OSX] some type fixes so OpenTTD likes more of the 3.1.x Xcodes.

This commit is contained in:
rubidium
2009-03-29 19:55:08 +00:00
parent 973a014a73
commit 6ceeb47c8b
5 changed files with 35 additions and 13 deletions

View File

@@ -299,7 +299,7 @@ class FullscreenSubdriver: public CocoaSubdriver {
bool SetVideoMode(int w, int h)
{
int exact_match;
boolean_t exact_match;
CFNumberRef number;
int bpp;
int gamma_error;

View File

@@ -65,7 +65,7 @@ class WindowQuartzSubdriver;
- (void)appDidHide:(NSNotification*)note;
- (void)appWillUnhide:(NSNotification*)note;
- (void)appDidUnhide:(NSNotification*)note;
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag;
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag;
@end
/* Delegate for our NSWindow to send ask for quit on close */
@@ -264,7 +264,7 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
}
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
/* Make our window subclass receive these application notifications */
[ [ NSNotificationCenter defaultCenter ] addObserver:self
@@ -336,7 +336,7 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
CGImageRef clippedImage;
NSRect rect;
const NSRect *dirtyRects;
int dirtyRectCount;
NSInteger dirtyRectCount;
int n;
CGRect clipRect;
CGRect blitRect;