Mercurial > hg > openttd
changeset 20226:cf70a887a44c draft
-Fix [FS#4689]: [OSX] Crash when unhiding the main window.
author | Michael Lutz <michi@icosahedron.de> |
---|---|
date | Fri, 08 Mar 2013 02:24:40 +0100 |
parents | a2d465f83f4a |
children | f9f90c6ec3f6 |
files | src/video/cocoa/cocoa_v.mm |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -649,18 +649,12 @@ - (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; } /**