mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
replace "auto" djui scale functionality with 4x native resolution (#846)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
This commit is contained in:
parent
99548b5b42
commit
86d5069a7e
1 changed files with 1 additions and 7 deletions
|
|
@ -65,13 +65,7 @@ f32 djui_gfx_get_scale(void) {
|
||||||
if (configDjuiScale == 0) { // auto
|
if (configDjuiScale == 0) { // auto
|
||||||
u32 windowWidth, windowHeight;
|
u32 windowWidth, windowHeight;
|
||||||
gfx_get_dimensions(&windowWidth, &windowHeight);
|
gfx_get_dimensions(&windowWidth, &windowHeight);
|
||||||
if (windowHeight < 768) {
|
return ((f32)windowHeight / (f32)SCREEN_HEIGHT) / 4.0f;
|
||||||
return 0.5f;
|
|
||||||
} else if (windowHeight < 1440) {
|
|
||||||
return 1.0f;
|
|
||||||
} else {
|
|
||||||
return 1.5f;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
switch (configDjuiScale) {
|
switch (configDjuiScale) {
|
||||||
case 1: return 0.5f;
|
case 1: return 0.5f;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue