Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
554:38b1a98aeb11 | 555:2536446a92de |
---|---|
128 video_format->BitsPerPixel = device_bpp; | 128 video_format->BitsPerPixel = device_bpp; |
129 | 129 |
130 /* Set misc globals */ | 130 /* Set misc globals */ |
131 current_grab_mode = SDL_GRAB_OFF; | 131 current_grab_mode = SDL_GRAB_OFF; |
132 in_foreground = YES; | 132 in_foreground = YES; |
133 | |
134 /* register for sleep notifications so wake from sleep generates SDL_VIDEOEXPOSE */ | |
135 QZ_RegisterForSleepNotifications (this); | |
133 | 136 |
134 return 0; | 137 return 0; |
135 } | 138 } |
136 | 139 |
137 static SDL_Rect** QZ_ListModes (_THIS, SDL_PixelFormat *format, Uint32 flags) { | 140 static SDL_Rect** QZ_ListModes (_THIS, SDL_PixelFormat *format, Uint32 flags) { |