Skip to content

Commit

Permalink
Always reload theme when changing video modes
Browse files Browse the repository at this point in the history
Also when reverting to the previous video mode. applyConfig will check
if it's needed to reload or not.
  • Loading branch information
rickgaiser committed May 7, 2020
1 parent 6cc28cd commit ff170c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ static int guiUIUpdater(int modified)

void guiShowUIConfig(void)
{
int themeID = -1, langID = -1;
curTheme = -1;
showCfgPopup = 0;
guiResetNotifications();
Expand Down Expand Up @@ -623,7 +624,6 @@ void guiShowUIConfig(void)

int ret = diaExecuteDialog(diaUIConfig, -1, 1, guiUIUpdater);
if (ret) {
int themeID = -1, langID = -1;
diaGetInt(diaUIConfig, UICFG_SCROLL, &gScrollSpeed);
diaGetInt(diaUIConfig, UICFG_LANG, &langID);
diaGetInt(diaUIConfig, UICFG_THEME, &themeID);
Expand Down Expand Up @@ -656,7 +656,7 @@ void guiShowUIConfig(void)
if (guiConfirmVideoMode() == 0) {
//Restore previous video mode, without changing the theme & language settings.
gVMode = previousVMode;
applyConfig(-1, -1);
applyConfig(themeID, langID);
goto reselect_video_mode;
}
}
Expand Down

0 comments on commit ff170c6

Please sign in to comment.