Re-add DJUI scale above 1.0

This commit is contained in:
Agent X 2024-06-01 13:48:27 -04:00
parent fa8d8c9b0f
commit cb3b7ebef9
2 changed files with 4 additions and 4 deletions

View file

@ -58,8 +58,8 @@ f32 djui_gfx_get_scale(void) {
} else {
switch (configDjuiScale) {
case 1: return 0.5f;
case 2: return 0.85f;
case 3: return 1.0f;
case 2: return 1.0f;
case 3: return 1.5f;
default: return 1.0f;
}
}

View file

@ -77,8 +77,8 @@ void djui_panel_main_menu_create(struct DjuiBase* caller) {
themeChoices[i] = (char*)gDjuiThemes[i]->name;
}
djui_selectionbox_create(body, DLANG(DJUI_THEMES, DJUI_THEME), themeChoices, DJUI_THEME_MAX, &configDjuiTheme, djui_panel_misc_djui_setting_change);
char* djuiScaleChoices[4] = {DLANG(DJUI_THEMES, AUTO), "x0.5", "x0.85", "x1.0"};
djui_selectionbox_create(body, DLANG(DJUI_THEMES, DJUI_SCALE), djuiScaleChoices, 4, &configDjuiScale, djui_panel_misc_djui_setting_change);
char* djuiScaleChoices[4] = {DLANG(DJUI_THEMES, AUTO), "x0.5", "x1.0", "x1.5"};
djui_selectionbox_create(body, DLANG(DJUI_THEMES, DJUI_SCALE), djuiScaleChoices, 5, &configDjuiScale, djui_panel_misc_djui_setting_change);
char* djuiFontChoices[2] = {DLANG(DJUI_THEMES, FONT_NORMAL), DLANG(DJUI_THEMES, FONT_ALIASED)};
djui_selectionbox_create(body, DLANG(DJUI_THEMES, DJUI_FONT), djuiFontChoices, 2, &configDjuiThemeFont, djui_panel_misc_djui_setting_change);