From 0e10c4b95bea6858a52ad739a365f4dedc3e8237 Mon Sep 17 00:00:00 2001 From: redthing1 Date: Sat, 12 Oct 2024 12:55:36 -0700 Subject: [PATCH] revert dpi scale and screen bounds --- source/re/gfx/window.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/re/gfx/window.d b/source/re/gfx/window.d index bcc5641..082fa08 100644 --- a/source/re/gfx/window.d +++ b/source/re/gfx/window.d @@ -50,7 +50,8 @@ class Window { } public @property float dpi_scale() { - return raylib.GetWindowScaleDPI().x; + auto scale_dpi_vec = raylib.GetWindowScaleDPI(); + return max(scale_dpi_vec.x, scale_dpi_vec.y); } public @property int screen_width() { @@ -62,7 +63,7 @@ class Window { } public @property Rectangle screen_bounds() { - return Rectangle(0, 0, screen_width * Core.window.dpi_scale, screen_height * Core.window.dpi_scale); + return Rectangle(0, 0, screen_width, screen_height); } public @property int render_width() {