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 3887 - Switching between desktop fullscreen and windowed mode causes window shrinkage.
Summary: Switching between desktop fullscreen and windowed mode causes window shrinkage.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.6
Hardware: x86 Windows 10
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
: 3896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-15 23:01 UTC by Joshua Moss
Modified: 2017-10-20 18:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Moss 2017-10-15 23:01:48 UTC
This was mentioned by another person in the forum on this link:  https://discourse.libsdl.org/t/sdl-fullscreen-toggle-shrinks-window/23160/2

This is a relatively new bug that was introduced since 2.0.6 as it did not occur in 2.0.5 and below.  Whenever you switch from desktop fullscreen (borderless) to windowed; window shrinks by a certain amount.  Keeps shrinking each time you do it.  I have a feeling it has something to do with some new hints that were added for logical size rendering.

Current workaround is to keep the previous window size intact (by storing values in variables) before going into fullscreen.
Comment 1 Sam Lantinga 2017-10-16 04:09:38 UTC
This should be fixed in the SDL 2.0.7 RC build:
http://www.libsdl.org/tmp/download-2.0.php

Can you confirm?
Comment 2 Joshua Moss 2017-10-16 04:46:09 UTC
(In reply to Sam Lantinga from comment #1)
> This should be fixed in the SDL 2.0.7 RC build:
> http://www.libsdl.org/tmp/download-2.0.php
> 
> Can you confirm?

Yep, it's completely fixed now.  No more need to workaround. ;)
Comment 3 Sam Lantinga 2017-10-16 05:02:00 UTC
Great, thanks for the update.
Comment 4 Eric Wasylishen 2017-10-17 03:32:39 UTC
Just for reference, this was fixed by http://hg.libsdl.org/SDL/rev/4006cd3d0a73
Comment 5 Egor 2017-10-20 18:56:31 UTC
*** Bug 3896 has been marked as a duplicate of this bug. ***