From 20324f889c40a844ac12d7ba6d59e101eb34d35b Mon Sep 17 00:00:00 2001 From: ColleagueRiley Date: Sun, 8 Dec 2024 16:34:44 -0500 Subject: [PATCH] update scaling (macos) --- RGFW.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RGFW.h b/RGFW.h index d6d545da..703f2ebc 100644 --- a/RGFW.h +++ b/RGFW.h @@ -8101,8 +8101,8 @@ RGFW_UNUSED(win); /*!< if buffer rendering is not being used */ monitor.rect = RGFW_RECT((int) bounds.origin.x, (int) bounds.origin.y, (int) bounds.size.width, (int) bounds.size.height); CGSize screenSizeMM = CGDisplayScreenSize(display); - monitor.physW = screenSizeMM.w / 25.4; - monitor.physH = screenSizeMM.h / 25.4; + monitor.physW = (float)screenSizeMM.width / 25.4f; + monitor.physH = (float)screenSizeMM.height / 25.4f; float dpi_width = round((double)monitor.rect.w/(double)monitor.physW); float dpi_height = round((double)monitor.rect.h/(double)monitor.physH);