Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
511 stars 121 forks source link

Window under Linux+Wayland does not get native screen pixels #876

Open tcdude opened 2 months ago

tcdude commented 2 months ago

Describe the bug When I retrieve the current display mode by initializing the display API before kinc_init and try to then open a window under wayland using that information, I get a window that is larger by the scaling factor I have set in my Window Manager (SwayWM) with scaled pixels.

To Reproduce Steps to reproduce the behavior:

  1. Use Linux+Wayland+Sway
  2. Set the "Scale Factor" to something larger than 1
  3. Run any sample like EmptyKinc and compare the window size to the expected window size (requires toggling the window to floating mode)
  4. the window is "Scale Factor" larger than the specified dimension in Kinc

Expected behavior Get a framebuffer with native resolution, regardless of the user set "Scale Factor"

Execution Environment: