Right now my app doesn’t know it needs to repaint when a system comes
out of screen save. Is this going to have to be solved in a system
specific way or is there a way to generate “power save restore” or, at
the very least, a full repaint message of some type when a system comes
out of powersave?
Right now my app doesn’t know it needs to repaint when a system comes
out of screen save. Is this going to have to be solved in a system
specific way or is there a way to generate “power save restore” or, at
the very least, a full repaint message of some type when a system comes
out of powersave?
Is there a system message that is sent to the application? Darrell?
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Is there a system message that is sent to the application? Darrell?
I’ve seen references to some kinds of Carbon events generate via IOKit
during suspend/resume, but I don’t know if that includes the screen
saver.
This is the #1 bug report we get for our OS X apps, and so far I
haven’t been able to figure out a good way to fix it other than to
possibly install a timer that generates a full repaint once a second
(altogether now…“eeewwwwww”).
Right now my app doesn’t know it needs to repaint when a system comes
out of screen save. Is this going to have to be solved in a system
specific way or is there a way to generate “power save restore” or, at
the very least, a full repaint message of some type when a system
comes
out of powersave?
Is there a system message that is sent to the application? Darrell?
I’m not aware of one, but I’ll check on this.On Wednesday, December 4, 2002, at 02:27 AM, Sam Lantinga wrote:
I just tried building the latest CVS SDL on OS X (10.1.5, PB), and it’s
not finding io_connect_t defined anywhere (for the private variable
’powerConnection’). Any ideas what I might be doing wrong?
The IOKit headers must be different on 10.2 and 10.1 (this code
compiles on 10.2). Do a grep for io_connect_t in
/System/Library/Frameworks/IOKit.framework/Headers to see where it is
defined. Then we can check that against 10.2 and add the necessary
header.On Thursday, December 12, 2002, at 03:01 PM, sdl-request at libsdl.org wrote:
Subject: [SDL] Latest CVS and building on OS X
Reply-To: sdl at libsdl.org
I just tried building the latest CVS SDL on OS X (10.1.5, PB), and it’s
not finding io_connect_t defined anywhere (for the private variable
’powerConnection’). Any ideas what I might be doing wrong?
A-ha, that looks like that was the problem. By adding an:
#include <IOKit/IOKitLib.h>
I got it to compile. Thanks.
Brian> -----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] On
Behalf Of Darrell Walisser
Sent: Thursday, December 12, 2002 3:26 PM
To: sdl at libsdl.org
Subject: Re: [SDL] Latest CVS and building on OS X
The IOKit headers must be different on 10.2 and 10.1 (this code
compiles on 10.2). Do a grep for io_connect_t in
/System/Library/Frameworks/IOKit.framework/Headers to see where it is
defined. Then we can check that against 10.2 and add the necessary
header.
On Thursday, December 12, 2002, at 03:01 PM, sdl-request at libsdl.org wrote:
Subject: [SDL] Latest CVS and building on OS X
Reply-To: sdl at libsdl.org
I just tried building the latest CVS SDL on OS X (10.1.5, PB), and
it’s not finding io_connect_t defined anywhere (for the private
variable ‘powerConnection’). Any ideas what I might be doing wrong?