djui_gfx_get_scale update

This commit is contained in:
Agent X 2023-11-22 19:38:42 -05:00
parent e3c0fe29da
commit 5c8621f408

View file

@ -44,14 +44,12 @@ const Gfx dl_djui_simple_rect[] = {
gsSPEndDisplayList(), gsSPEndDisplayList(),
}; };
// might need to update this at some point
f32 djui_gfx_get_scale(void) { f32 djui_gfx_get_scale(void) {
u32 windowWidth, windowHeight; u32 windowWidth, windowHeight;
wm_api->get_dimensions(&windowWidth, &windowHeight); wm_api->get_dimensions(&windowWidth, &windowHeight);
if (windowHeight < 720 - 64) { if (windowHeight < 768) {
return 0.5f; return 0.5f;
} else if (windowHeight < 1440 + 64) { } else if (windowHeight < 1440) {
return 1.0f; return 1.0f;
} else { } else {
return 2.0f; return 2.0f;