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 - WINDOW_FULLSCREEN_DESKTOP leaves one-pixel gap on Windows
Summary: WINDOW_FULLSCREEN_DESKTOP leaves one-pixel gap on Windows
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.9
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-12 02:05 UTC by Caleb Cornett
Modified: 2019-04-12 03:03 UTC (History)
0 users

See Also:


Attachments
Screenshot of the issue (4.48 MB, image/png)
2019-04-12 02:05 UTC, Caleb Cornett
Details

Note You need to log in before you can comment on or make changes to this bug.
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.