| Summary: | SDL doesn't center window correctly when taskbar is placed vertically on side | ||
|---|---|---|---|
| Product: | SDL | Reporter: | RadarNyan |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 2.0.10 | Keywords: | target-2.0.16 |
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
My laptop has a 1366x768 resolution (yeah, I know...) to get most vertical space out of it I've been used to put the Windows taskbar on side for years. The remaining space is big enough to fit a window of 1280x720 (client area size), however when I try to create a 1280x720 window with SDL: SDL.SDL_CreateWindow("SDL2 Window", SDL.SDL_WINDOWPOS_CENTERED, SDL.SDL_WINDOWPOS_CENTERED, 1280, 720, SDL.SDL_WindowFlags.SDL_WINDOW_SHOWN); (I'm using SDL-CS binding for C#) The window is placed as if the taskbar is at the bottom of the screen, which in my case (vertical taskbar on right side) the window is neither centered vertically (a bit too high, as if SDL assumes there's a taskbar at the bottom) nor centered horizontally (it is centered to the entire display width, not the area excluding taskbar)