[SDL] SDL_FULLSCREEN and different ratios

Dominik Dagiel dominik at dagiel.pl
Mon Jan 14 07:24:41 PST 2008


Hi

I develop 2d programs and games with SDL. They usually play on fullscreen with 
resolutions 800x600 and 1024x768. Unfortunatelly today many people use 
widescreen monitors and my programs don't look good on them.

I added checking screen ratio before setting video and if it's different than 
in game config I run program in window. But I think it could be a good idea 
to add to SDL_SetVideoMode another flags:
SDL_FULLSCREEN_4_3 - same as SDL_FULLSCREEN on 4:3 monitors, but with black 
bars on others,
SDL_FULLSCREEN_16_9
SDL_FULLSCREEN_16_10
which would automatically resolve the stretching problem. What do you think? 
Did you have similar problem? How did you resolve it?

-- 
Regards,
Dominik


More information about the SDL mailing list