Skip to content

4k HiDPI monitor detected as 2560x1440 on Windows 10 #469

Closed

Description

@eterevsky

OS: Windows 10 Home, Version 1708, build 16299.371
winit version: 0.11.3
GPU: Nvidia GTX 1080, driver 385.54
Scaling factor: 150%

events_loop.get_primary_monitor()

produces MonitorId with name = "\.\DISPLAY1", dimensions = (2560, 1440), position = (0, 0), hidpi_factor = 1

winit::WindowBuilder::new().with_fullscreen(Some(events_loop.get_primary_monitor()))

changes monitor resolution to 2560x1440 instead of using native 3840x2160.

Activity

  1. added
    DS - win32
    on Apr 17, 2018
  2. francesca64 commented on Apr 18, 2018

    @francesca64
    Member

    With #457, setting fullscreen doesn't change monitor resolution at all, so optimistically that's fixed there too.

  3. eterevsky commented on Apr 18, 2018

    @eterevsky
    Author

    On master only the first part of the issue can be reproduced, i.e. a 4k monitor is reported as having dimensions 2560x1440 and scale factor 1 instead of 1.5. However, creating a fullscreen window doesn't change the resolution, which is nice.

  4. francesca64 commented on Apr 18, 2018

    @francesca64
    Member

    That sounds like it's probably related to DPI awareness, which there's a seemingly abandoned PR for (#332). Getting that ready for merge is on my to-do list, so I'll let you know when that happens.

  5. kwonoj commented on May 3, 2018

    @kwonoj
    Contributor

    I'm interested in this issue as well, curious plans around #332 - allows some other contributor than the original author could possibly try to rebase to master and create new PR or honor and wait for original author or owner chimes in? @francesca64

  6. francesca64 commented on May 3, 2018

    @francesca64
    Member

    @kwonoj I've been planning on rebasing it myself. I've just been busy working on other improvements, so it's been pushed back a few times. I should be able to start working on it today though.

  7. added
    B - bug
    C - in progress
    D - hard
    P - high
    on May 6, 2018
  8. added this to the HiDPI Support milestone on May 6, 2018
  9. francesca64 commented on Jun 3, 2018

    @francesca64
    Member

    This took much longer than I thought it would, but you'll see why when you see the PR: #548

  10. added a commit that references this issue on Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugC - in progressD - hardDS - win32P - high

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions