Returning from the last resolution

Hi there.

I have this situation (quite common, I believe) when my software has to
run fullscreen on X. How do recomend to restore the last video settings
when I quit my application?

TIA

Adilson.

That should be handled automatically by SDL, although it might fail if
your application crashes at the wrong moment.

Try some of the SDL test apps that can do fullscreen. If they work,
it’s a problem with your code. If they have the same problem,
something’s wrong with X, SDL or possibly something else on your
system.

//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -’
http://olofson.nethttp://www.reologica.se —On Wednesday 05 February 2003 14.49, Adilson Oliveira wrote:

Hi there.

I have this situation (quite common, I believe) when my software
has to run fullscreen on X. How do recomend to restore the last
video settings when I quit my application?

David Olofson wrote:> On Wednesday 05 February 2003 14.49, Adilson Oliveira wrote:

Hi there.

I have this situation (quite common, I believe) when my software
has to run fullscreen on X. How do recomend to restore the last
video settings when I quit my application?

That should be handled automatically by SDL, although it might fail if
your application crashes at the wrong moment.

Hi.

I don’t know why it did not work before, probably a bug in my
application but now it works as expected :slight_smile:

Thank you.

Adilson.