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 3576 - Fullscreen display cropped to desktop resolution
Summary: Fullscreen display cropped to desktop resolution
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.5
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 22:12 UTC by Yann Dirson
Modified: 2017-08-11 19:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Dirson 2017-01-31 22:12:17 UTC
Eg. to reproduce:

* setup a SDL2 game like nexuiz to use your best fullscreen resolution, and close it
* use xrandr to switch to a smaller resolution
* launch nexuiz again: you get your requested resolution, but the display is cropped at the smaller resolution, making the whole just unusable

(SDL1.2 apps like Battle for Wesnoth, OTOH, crash with an XF86VidModeSwitchToMode exception)

What happens is that SDL does not touch the Xrandr Screen Size.  While this is probably useful to avoid the desktop manager to shuffle icons, it has a bit downside for users willing eg. to use 4K only for gaming and not on the desktop.
Comment 1 Sam Lantinga 2017-08-11 19:52:33 UTC
True fullscreen (not fullscreen desktop) games should be setting the mode as the come into focus. Ryan, are we capping this to the desktop resolution on Linux?