From 5d404097f2acdb802662cd9184a1caa629679bc0 Mon Sep 17 00:00:00 2001 From: maron2000 <68574602+maron2000@users.noreply.github.com> Date: Tue, 31 Dec 2024 00:03:35 +0900 Subject: [PATCH] Fix build error of Linux builds --- src/shell/shell_cmds.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 8a176b94e10..60fbf9cabc0 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -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; @@ -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)