(svn r21684) -Fix [FS#4360] (r21573): Silence some compile warnings
This commit is contained in:
		@@ -511,7 +511,7 @@ void cocoaReleaseAutoreleasePool()
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * Initialize event system for the application rectangle
 | 
					 * Initialize event system for the application rectangle
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
- (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 */
 | 
						/* Make our window subclass receive these application notifications */
 | 
				
			||||||
	[ [ NSNotificationCenter defaultCenter ] addObserver:self
 | 
						[ [ NSNotificationCenter defaultCenter ] addObserver:self
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -294,14 +294,14 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height)
 | 
				
			|||||||
	if (this->cocoaview == nil) {
 | 
						if (this->cocoaview == nil) {
 | 
				
			||||||
		this->cocoaview = [ [ OTTD_QuartzView alloc ] initWithFrame:contentRect ];
 | 
							this->cocoaview = [ [ OTTD_QuartzView alloc ] initWithFrame:contentRect ];
 | 
				
			||||||
		if (this->cocoaview == nil) {
 | 
							if (this->cocoaview == nil) {
 | 
				
			||||||
			DEBUG(driver, 0, "Could not create the Quickdraw view.");
 | 
								DEBUG(driver, 0, "Could not create the Quartz view.");
 | 
				
			||||||
			this->setup = false;
 | 
								this->setup = false;
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		[ this->cocoaview setDriver:this ];
 | 
							[ this->cocoaview setDriver:this ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		[ this->cocoaview setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable ];
 | 
							[ (NSView*)this->cocoaview setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable ];
 | 
				
			||||||
		[ this->window setContentView:cocoaview ];
 | 
							[ this->window setContentView:cocoaview ];
 | 
				
			||||||
		[ this->cocoaview release ];
 | 
							[ this->cocoaview release ];
 | 
				
			||||||
		[ this->window makeKeyAndOrderFront:nil ];
 | 
							[ this->window makeKeyAndOrderFront:nil ];
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user