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

This commit is contained in:
King 2025-06-13 02:16:21 +01:00 committed by GitHub
parent 99548b5b42
commit 86d5069a7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,13 +65,7 @@ f32 djui_gfx_get_scale(void) {
if (configDjuiScale == 0) { // auto
u32 windowWidth, windowHeight;
gfx_get_dimensions(&windowWidth, &windowHeight);
if (windowHeight < 768) {
return 0.5f;
} else if (windowHeight < 1440) {
return 1.0f;
} else {
return 1.5f;
}
return ((f32)windowHeight / (f32)SCREEN_HEIGHT) / 4.0f;
} else {
switch (configDjuiScale) {
case 1: return 0.5f;