We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2106 - OpenGL window: Isn't centered when set to SDL_WINDOW_FULLSCREEN[_DESKTOP]
Summary: OpenGL window: Isn't centered when set to SDL_WINDOW_FULLSCREEN[_DESKTOP]
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-19 00:45 UTC by Yohann Ferreira
Modified: 2013-10-01 14:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yohann Ferreira 2013-09-19 00:45:26 UTC
The openGL window is shown on the screen left when using the fullscreen mode.
It should be centered for eye candy purpose.

Best regards,
Comment 1 Yohann Ferreira 2013-09-19 00:46:09 UTC
I meant the OpenGL viewport is shown on the left. (There is no window in fullscreen mode, of course ;])
Comment 2 Sam Lantinga 2013-09-28 06:55:18 UTC
You're responsible for managing the OpenGL viewport based on the window size.  The SDL render API does this for you, but if you're using OpenGL directly you're coding to the metal. :)
Comment 3 Yohann Ferreira 2013-10-01 14:13:47 UTC
Ok, thanks a lot for the answer. :)
I'll deal with it.