Skip to content

Commit

Permalink
update scaling (macos)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Dec 8, 2024
1 parent 8828d68 commit 20324f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 20324f8

Please sign in to comment.