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 4146 - GDK SCALE leads to wrong resolution in wayland
Summary: GDK SCALE leads to wrong resolution in wayland
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.8
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-21 19:54 UTC by Fabian
Modified: 2018-10-27 21:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian 2018-04-21 19:54:59 UTC
Setting up GNOME in HiDPI mode (GDK_SCALE=2) and now launching a sdl2 using game with it's wayland backends leads to a 2x greater resoltion.

So Windows that are rendered for a 1920*1080 resolution will be streched to 3849*2160. While this sounds logical, it isnt. The content is just streched, rendered in 1920*1080.
Comment 1 Sebastian Krzyszkowiak 2018-10-27 21:03:42 UTC
Basically there is no HIGHDPI support in the Wayland backend at all - it's implemented only in macOS, iOS and Emscripten ones so far.