mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Fix DJUI scaling for existing configs
This commit is contained in:
parent
deb2c00dba
commit
4592559fe3
3 changed files with 6 additions and 4 deletions
|
@ -678,6 +678,7 @@ NEXT_OPTION:
|
|||
if (configPlayerModel >= CT_MAX) { configPlayerModel = 0; }
|
||||
|
||||
if (configDjuiTheme >= DJUI_THEME_MAX) { configDjuiTheme = 0; }
|
||||
if (configDjuiScale >= 5) { configDjuiScale = 0; }
|
||||
|
||||
if (!strcmp(configLastVersion, "")) { snprintf(configLastVersion, MAX_CONFIG_STRING, "%s", get_version()); }
|
||||
|
||||
|
|
|
@ -58,8 +58,9 @@ f32 djui_gfx_get_scale(void) {
|
|||
} else {
|
||||
switch (configDjuiScale) {
|
||||
case 1: return 0.5f;
|
||||
case 2: return 1.0f;
|
||||
case 3: return 1.5f;
|
||||
case 2: return 0.85f;
|
||||
case 3: return 1.0f;
|
||||
case 4: return 1.5f;
|
||||
default: return 1.0f;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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", "x1.0", "x1.5"};
|
||||
djui_selectionbox_create(body, DLANG(DJUI_THEMES, DJUI_SCALE), djuiScaleChoices, 4, &configDjuiScale, djui_panel_misc_djui_setting_change);
|
||||
char* djuiScaleChoices[5] = {DLANG(DJUI_THEMES, AUTO), "x0.5", "x0.85", "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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue