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 4591

Summary: WINDOW_FULLSCREEN_DESKTOP leaves one-pixel gap on Windows
Product: SDL Reporter: Caleb Cornett <spydog>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.9   
Hardware: x86_64   
OS: Windows 10   
Attachments: Screenshot of the issue

Description Caleb Cornett 2019-04-12 02:05:31 UTC
Created attachment 3742 [details]
Screenshot of the issue

Creating a window with the flag SDL_WINDOW_FULLSCREEN_DESKTOP leaves a one-pixel gap at the very bottom of screen, allowing part of the Windows taskbar to show through. You can see an example in the attached image.

Reproduced with various SDL games, including Celeste and VVVVVV, as well as my own test project (shown in the image).

Tested on a Surface Laptop running Windows 10 Pro, Version 1809.
Comment 1 Caleb Cornett 2019-04-12 03:03:40 UTC
After a little more investigation, it only seems to happen when the Windows Display settings have a scaling factor that's not a multiple of 100%. For instance, 125% scaling adds a pixel-wide gap on the right side of the screen, and 150% yields the bottom gap I mentioned in the original comment.