Hi,
my SDL apps are crashing when the display resolution changes, that is, when
the user changes the screen resolution while my app is running. Is this a
known problem? Is there any workaround to solve it?
Something similar happens with the screensaver. If the screensaver password
has been enabled, there’s no way to bypass it, so the screensaver runs even
if you return 0 to the syscommand screensave message. And if that happens my
app crashes.
Well, the app does not segfault, instead of that, it just stays in an
infinite loop inside bcore or kernel32. This happens on win2k with SDL1.2.5
with the dx driver and using only sw surfaces.
Ignacio Casta?o
@Ignacio_Castano___________________________________________________
Yahoo! Postales
Felicita las Navidades con las postales m?s
divertidas desde http://postales.yahoo.es
Even though you’re using software surfaces, have you possibly initalised the
graphics to use hardware surfaces by default, and maybe some hardware
surfaces have slipped through?
Sorry, just sounds a lot like the usual hardware surface issue when running
under Windows.> ----- Original Message -----
From: castanyo@yahoo.es (Ignacio Castano)
To:
Sent: Friday, January 10, 2003 1:54 PM
Subject: [SDL] display change & screensaver
Hi,
my SDL apps are crashing when the display resolution changes, that is,
when
the user changes the screen resolution while my app is running. Is this a
known problem? Is there any workaround to solve it?
Something similar happens with the screensaver. If the screensaver
password
has been enabled, there’s no way to bypass it, so the screensaver runs
even
if you return 0 to the syscommand screensave message. And if that happens
my
app crashes.
Well, the app does not segfault, instead of that, it just stays in an
infinite loop inside bcore or kernel32. This happens on win2k with
SDL1.2.5
with the dx driver and using only sw surfaces.
Ignacio Casta?o
castanyo at yahoo.es
Yahoo! Postales
Felicita las Navidades con las postales m?s
divertidas desde http://postales.yahoo.es
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Rob wrote:
Even though you’re using software surfaces, have you possibly initalised
the
graphics to use hardware surfaces by default, and maybe some hardware
surfaces have slipped through?
I open the video mode with the SWSURFACE flag. And I create all the surfaces
with the SWSURFACE flag.
Sorry, just sounds a lot like the usual hardware surface issue when
running
under Windows.
I’ve tested this with the example apps that come with SDL, and there are
also problems with display change. The screensaver works fine though.
I’ve also noticed that the screensaver bug does not happen if my app is
minimized when the screensaver starts, and only hanges if it’s active. It
seems that this has something to do with direct input, I’m not recieving any
ACTIVEEVENT message when my app looses the focus…
Ignacio Casta?o
@Ignacio_Castano___________________________________________________
Yahoo! Postales
Felicita las Navidades con las postales m?s
divertidas desde http://postales.yahoo.es