Skip to content

[rcore] core_high_dpi example wrong physical size after window resize #5335

@david-vanderson

Description

@david-vanderson

Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • there are a lot of high dpi issues, but not specifically this
  • I checked the documentation on the wiki
  • My code has no errors or misuse of raylib

Issue description

Running ../zig-x86_64-windows-0.15.2/zig.exe build core_high_dpi on 125% display scale windows 11 initially shows a window that looks correct (see screenshot).

Resizing the window at all causes the physical and logical pixel sizes to become the same (see screenshot).

Environment

Windows 11 125% display scale. Here's the initial log:

INFO: Initializing raylib 5.6-dev
INFO: Platform backend: DESKTOP (GLFW)
INFO: Supported raylib modules:
INFO:     > rcore:..... loaded (mandatory)
INFO:     > rlgl:...... loaded (mandatory)
INFO:     > rshapes:... loaded (optional)
INFO:     > rtextures:. loaded (optional)
INFO:     > rtext:..... loaded (optional)
INFO:     > rmodels:... loaded (optional)
INFO:     > raudio:.... loaded (optional)
INFO: DISPLAY: Device initialized successfully
INFO:     > Display size: 1920 x 1200
INFO:     > Screen size:  800 x 450
INFO:     > Render size:  1000 x 562
INFO:     > Viewport offsets: 0, 0
INFO: GLAD: OpenGL extensions loaded successfully
INFO: GL: Supported extensions count: 247
INFO: GL: OpenGL device information:
INFO:     > Vendor:   Intel
INFO:     > Renderer: Intel(R) Iris(R) Xe Graphics
INFO:     > Version:  3.3.0 - Build 32.0.101.6881
INFO:     > GLSL:     3.30 - Build 32.0.101.6881
INFO: GL: VAO extension detected, VAO functions loaded successfully
INFO: GL: NPOT textures extension detected, full NPOT textures supported
INFO: GL: DXT compressed textures supported
INFO: GL: ETC2/EAC compressed textures supported
INFO: PLATFORM: DESKTOP (GLFW - Win32): Initialized successfully

Issue Screenshot

Initial Window:

Image

After Window Resize:

Image

Let me know if I can provide other information or how I can help. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowingIssues about the window system

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions