SDL_FULLSCREEN

Started by
3 comments, last by PhantomRonin 11 years, 10 months ago
When I create a window and make it fullscreen in SDL it doesnt go completely fullscreen. It leaves me with black bars on the side. Anyone know why this could be?
Advertisement
There is a vast array of possible reasons for this. Without some more information or a code snippet, this is just a guessing game.
Doing some blind guessing: Check your viewport settings, aspect ratio, resolution
If the monitor does not support the requested resolution, SDL tries to emulate it. To avoid this, try to pick a resolution is directly supported. You can list them using SDL_ListModes: http://sdl.beuc.net/sdl.wiki/SDL_ListModes.

If the monitor does not support the requested resolution, SDL tries to emulate it. To avoid this, try to pick a resolution is directly supported. You can list them using SDL_ListModes: http://sdl.beuc.net/...i/SDL_ListModes.


Thanks that should help
Ok another question when I go fullscreen how do I deal with the sprites? Do I have to have different sprites for different resolutions or can I resize somehow with SDL?

This topic is closed to new replies.

Advertisement