mirror of https://github.com/OpenTTD/OpenTTD
(svn r25665) -Fix [FS#4689]: [OSX] Crash when unhiding the main window.
parent
1ae357e905
commit
8003da77aa
|
@ -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;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue