Best init code and sd

What’s the best way to initialise a full screen SDL application with double
buffering/hardware surfaces if available, but the next best full screen mode
if it’s not?

Also, I’m using SDL_Mixer, and am finding that Mix_VolumeMusic(x) will turn
my music volume off if x is set to 0, and on if it is a non zero value. It
doesn’t actually increase/decrease the volume between 0-100% though. Is
this a bug or is it a me bug?

Thanks for anyone’s help,

Rob_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

What’s the best way to initialise a full screen SDL application with double
buffering/hardware surfaces if available, but the next best full screen mode
if it’s not?

SDL automatically does this for you. Just set your desired video mode, and
SDL will do its best to return what you asked for, luckily, exactly what you
described. :slight_smile:

Also, I’m using SDL_Mixer, and am finding that Mix_VolumeMusic(x) will turn
my music volume off if x is set to 0, and on if it is a non zero value. It
doesn’t actually increase/decrease the volume between 0-100% though. Is
this a bug or is it a me bug?

What kind of music format are you playing?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software