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

Summary: OpenGL window: Isn't centered when set to SDL_WINDOW_FULLSCREEN[_DESKTOP]
Product: SDL Reporter: Yohann Ferreira <yohann.ferreira>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: yohann.ferreira
Version: 2.0.0   
Hardware: x86_64   
OS: Linux   

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.