Skip to content

Commit

Permalink
Fix build error of Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Dec 30, 2024
1 parent 886d868 commit 5d40409
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/shell/shell_cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ FILE *testLoadLangFile(const char *fname);
Bitu DOS_ChangeCodepage(int32_t codepage, const char* codepagefile);
bool CheckDBCSCP(int32_t codepage), SwitchLanguage(int oldcp, int newcp, bool confirm);
void makestdcp950table(), makeseacp951table();
#if C_OPENGL
bool OpenGL_using(void);
#endif
void UpdateSDLDrawTexture();

static int32_t lastsetcp = 0;
bool CHCP_changed = false;

Expand Down Expand Up @@ -4578,7 +4583,7 @@ int toSetCodePage(DOS_Shell *shell, int newCP, int opt) {
}
if (finish_prepare) runRescan("-A -Q");
#if C_OPENGL && DOSBOXMENU_TYPE == DOSBOXMENU_SDLDRAW
if(OpenGL_using() && control->opt_lang.size() && lastcp && lastcp != dos.loaded_codepage)
if(OpenGL_using() && control->opt_lang.size())
UpdateSDLDrawTexture();
#endif
#if defined(USE_TTF)
Expand Down

0 comments on commit 5d40409

Please sign in to comment.