Sign in to follow this  

SDL_FULLSCREEN

This topic is 2063 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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: [url="http://sdl.beuc.net/sdl.wiki/SDL_ListModes"]http://sdl.beuc.net/sdl.wiki/SDL_ListModes[/url].

Share this post


Link to post
Share on other sites
[quote name='rip-off' timestamp='1337849603' post='4942840']
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: [url="http://sdl.beuc.net/sdl.wiki/SDL_ListModes"]http://sdl.beuc.net/...i/SDL_ListModes[/url].
[/quote]

Thanks that should help

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

This topic is 2063 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this