Skip to content

Commit

Permalink
Merge branch 'master' into fix_libc++19
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 authored Nov 1, 2024
2 parents 5597913 + 2d94a7f commit 8f879c3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Next
- Fixed build failure with libc++ 19 (@DimitryAndric)
- Fixed fullscreen mode not responding when launched in TTF mode
in Windows (maron2000)
- Fixed crashes when changing floppies mounted by drive numbers on
a booted guest OS (maron2000)
- Fixed launching host programs with white spaces in path (Windows)
Expand Down
8 changes: 4 additions & 4 deletions src/gui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ static const char *def_menu__toplevel[] =
"VideoMenu",
"SoundMenu",
"DOSMenu",
"DriveMenu",
#if !defined(C_EMSCRIPTEN)
"CaptureMenu",
#endif
"DriveMenu",
#if C_DEBUG
"DebugMenu",
#endif
Expand Down Expand Up @@ -709,9 +709,9 @@ static const char *def_menu_capture[] =
"mapper_capnetrf",
"--",
#endif
"saveoptionmenu",
"mapper_savestate",
"mapper_loadstate",
"saveoptionmenu",
"saveslotmenu",
"autosavecfg",
"browsesavefile",
Expand Down Expand Up @@ -860,7 +860,7 @@ static const char* def_menu_help_debug[] =
static const char *def_menu_help[] =
{
"help_intro",
"HelpCommandMenu",
"help_about",
#if !defined(HX_DOS)
"--",
"help_homepage",
Expand All @@ -880,7 +880,7 @@ static const char *def_menu_help[] =
#if C_PCAP || C_PRINTER && defined(WIN32) || !C_DEBUG && !defined(MACOSX) && !defined(LINUX) && !defined(HX_DOS) && !defined(C_EMSCRIPTEN)
"--",
#endif
"help_about",
"HelpCommandMenu",
NULL
};

Expand Down
6 changes: 5 additions & 1 deletion src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3809,8 +3809,12 @@ static void GUI_StartUp() {
posy = -1;
const char* windowposition = section->Get_string("windowposition");
LOG_MSG("Configured windowposition: %s", windowposition);
if (windowposition && !strcmp(windowposition, "-"))
if(windowposition && !strcmp(windowposition, "-"))
#if defined (WIN32) && !defined(C_SDL2)
posx = posy = -1;
#else
posx = posy = -2;
#endif
else if (windowposition && *windowposition && strcmp(windowposition, ",")) {
char result[100];
safe_strncpy(result, windowposition, sizeof(result));
Expand Down
10 changes: 7 additions & 3 deletions src/shell/shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ void DOS_Shell::Prepare(void) {
}
}
}
if (country>0&&!control->opt_noconfig) {
if (country>0&&!control->opt_noconfig) {
countryNo = country;
DOS_SetCountry(countryNo);
}
Expand Down Expand Up @@ -1139,7 +1139,6 @@ class AUTOEXEC:public Module_base {
}
if (control->opt_prerun) cmd += "\n";
}

autoexec_auto_bat.Install(cmd);
}
dos.loaded_codepage = cp;
Expand Down Expand Up @@ -1264,7 +1263,12 @@ class AUTOEXEC:public Module_base {
#else
if (secure) autoexec[i++].Install("z:\\system\\config.com -securemode");
#endif

#if defined(WIN32)
if(TTF_using()) {
autoexec[i++].Install("@config -set output=surface");
autoexec[i++].Install("@config -set output=ttf");
}
#endif
if (addexit) autoexec[i++].Install("exit");

assert(i <= 17); /* FIXME: autoexec[] should not be fixed size */
Expand Down

0 comments on commit 8f879c3

Please sign in to comment.