From 5c8621f4086bf83c4fd0c0375071b7c21f19823f Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:38:42 -0500 Subject: [PATCH] djui_gfx_get_scale update --- src/pc/djui/djui_gfx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pc/djui/djui_gfx.c b/src/pc/djui/djui_gfx.c index a4e6baa9..6e7ee313 100644 --- a/src/pc/djui/djui_gfx.c +++ b/src/pc/djui/djui_gfx.c @@ -44,14 +44,12 @@ const Gfx dl_djui_simple_rect[] = { gsSPEndDisplayList(), }; - -// might need to update this at some point f32 djui_gfx_get_scale(void) { u32 windowWidth, windowHeight; wm_api->get_dimensions(&windowWidth, &windowHeight); - if (windowHeight < 720 - 64) { + if (windowHeight < 768) { return 0.5f; - } else if (windowHeight < 1440 + 64) { + } else if (windowHeight < 1440) { return 1.0f; } else { return 2.0f;