Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzVideo.m @ 555:2536446a92de
From: Darrell Walisser
Subject: Re: [SDL] OS X and power save
Here ya go. This works just fine. One might complain that it doesn't
generate the event until after wake as completed (there is about 5
seconds between the screen coming up and the expose event), but I think
that's OK.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 07 Dec 2002 06:48:49 +0000 |
parents | 74262d2647ca |
children | 37c31c12eb70 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.m Mon Dec 02 03:11:36 2002 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.m Sat Dec 07 06:48:49 2002 +0000 @@ -131,6 +131,9 @@ current_grab_mode = SDL_GRAB_OFF; in_foreground = YES; + /* register for sleep notifications so wake from sleep generates SDL_VIDEOEXPOSE */ + QZ_RegisterForSleepNotifications (this); + return 0; }