summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:36:13 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:36:13 +0000
commit8003da77aa5141df149988cc458a27969affc9b1 (patch)
tree5bfaf7646493c820120a1b77438569033cf69c1b /src/video/cocoa
parent1ae357e905cd19ba49372775dcd79177b95e25e0 (diff)
downloadopenttd-8003da77aa5141df149988cc458a27969affc9b1.tar.xz
(svn r25665) -Fix [FS#4689]: [OSX] Crash when unhiding the main window.
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/cocoa_v.mm6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index f3e68b0ce..8e7b7824e 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -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;
}
/**