mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 22:59:30 +00:00
(svn r25665) -Fix [FS#4689]: [OSX] Crash when unhiding the main window.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
/**
|
||||
|
Reference in New Issue
Block a user