djui_gfx_get_scale update
This commit is contained in:
parent
e3c0fe29da
commit
5c8621f408
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue