(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
|
- (void)appWillUnhide:(NSNotification*)note
|
||||||
{
|
{
|
||||||
driver->SetPortAlphaOpaque ();
|
driver->SetPortAlphaOpaque ();
|
||||||
|
|
||||||
/* save current visible surface */
|
|
||||||
[ self cacheImageInRect:[ driver->cocoaview frame ] ];
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Unhide and restore display plane and re-activate driver
|
* Unhide and restore display plane and re-activate driver
|
||||||
*/
|
*/
|
||||||
- (void)appDidUnhide:(NSNotification*)note
|
- (void)appDidUnhide:(NSNotification*)note
|
||||||
{
|
{
|
||||||
/* restore cached image, since it may not be current, post expose event too */
|
|
||||||
[ self restoreCachedImage ];
|
|
||||||
|
|
||||||
driver->active = true;
|
driver->active = true;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user