Storing original display resolution

This seems basic, so I feel I must have missed it somewhere, but I’d
like to grab the current video display size and depth upon program
entry, so that I can restore it upon exit.

I cannot find this in the documentation or FAQ - anyone have any hints
or a code snippet to point me in the right direction?

Thanks,
– Jeff Duncan
thaellin at bigfoot.com

This seems basic, so I feel I must have missed it somewhere, but I’d
like to grab the current video display size and depth upon program
entry, so that I can restore it upon exit.

doesn’t SDL_Quit() do this for you?

This seems basic, so I feel I must have missed it somewhere, but I’d
like to grab the current video display size and depth upon program
entry, so that I can restore it upon exit.

doesn’t SDL_Quit() do this for you?

It may - but it’s not documented (anywhere?) as doing so. I haven’t read
the source code, though…

– Jeff

It does.On Sat, 2 Sep 2000, Jeff Duncan wrote:

This seems basic, so I feel I must have missed it somewhere, but I’d
like to grab the current video display size and depth upon program
entry, so that I can restore it upon exit.

doesn’t SDL_Quit() do this for you?

It may - but it’s not documented (anywhere?) as doing so. I haven’t read
the source code, though…

– Jeff

Martin

Bother! said Pooh, and then deleted his message base.

Okie thanks :slight_smile:

Martin Donlon wrote:>

It does.

On Sat, 2 Sep 2000, Jeff Duncan wrote:

This seems basic, so I feel I must have missed it somewhere, but I’d
like to grab the current video display size and depth upon program
entry, so that I can restore it upon exit.

doesn’t SDL_Quit() do this for you?

It may - but it’s not documented (anywhere?) as doing so. I haven’t read
the source code, though…

– Jeff

Martin

Bother! said Pooh, and then deleted his message base.