mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
djui_gfx_get_scale update
This commit is contained in:
parent
e3c0fe29da
commit
5c8621f408
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue