Changeset - r20627:c3e344d30951
[Not reviewed]
master
0 1 0
michi_cc - 11 years ago 2013-08-05 20:36:13
michi_cc@openttd.org
(svn r25665) -Fix [FS#4689]: [OSX] Crash when unhiding the main window.
1 file changed with 0 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/video/cocoa/cocoa_v.mm
Show inline comments
 
@@ -649,18 +649,12 @@ void cocoaReleaseAutoreleasePool()
 
- (void)appWillUnhide:(NSNotification*)note
 
{
 
	driver->SetPortAlphaOpaque ();
 

	
 
	/* save current visible surface */
 
	[ self cacheImageInRect:[ driver->cocoaview frame ] ];
 
}
 
/**
 
 * Unhide and restore display plane and re-activate driver
 
 */
 
- (void)appDidUnhide:(NSNotification*)note
 
{
 
	/* restore cached image, since it may not be current, post expose event too */
 
	[ self restoreCachedImage ];
 

	
 
	driver->active = true;
 
}
 
/**
0 comments (0 inline, 0 general)