Skip to content

Commit

Permalink
warzoneconfig.cpp: Default Emscripten FMVmode to 2x
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Feb 14, 2024
1 parent 44c5675 commit 306c8e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ bool loadConfig()
NETsetDefaultMPHostFreeChatPreference(iniGetBool("hostingChatDefault", NETgetDefaultMPHostFreeChatPreference()).value());
setPublicIPv4LookupService(iniGetString("publicIPv4LookupService_Url", WZ_DEFAULT_PUBLIC_IPv4_LOOKUP_SERVICE_URL).value(), iniGetString("publicIPv4LookupService_JSONKey", WZ_DEFAULT_PUBLIC_IPv4_LOOKUP_SERVICE_JSONKEY).value());
setPublicIPv6LookupService(iniGetString("publicIPv6LookupService_Url", WZ_DEFAULT_PUBLIC_IPv6_LOOKUP_SERVICE_URL).value(), iniGetString("publicIPv6LookupService_JSONKey", WZ_DEFAULT_PUBLIC_IPv6_LOOKUP_SERVICE_JSONKEY).value());
war_SetFMVmode((FMV_MODE)iniGetInteger("FMVmode", FMV_FULLSCREEN).value());
war_SetFMVmode((FMV_MODE)iniGetInteger("FMVmode", war_GetFMVmode()).value());
war_setScanlineMode((SCANLINE_MODE)iniGetInteger("scanlines", SCANLINES_OFF).value());
seq_SetSubtitles(iniGetBool("subtitles", true).value());
setDifficultyLevel((DIFFICULTY_LEVEL)iniGetInteger("difficulty", DL_NORMAL).value());
Expand Down
8 changes: 7 additions & 1 deletion src/warzoneconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ constexpr int MAX_OLD_LOGS = 50;

/***************************************************************************/

#if !defined(__EMSCRIPTEN__)
#define WZ_DEFAULT_FMV_MODE FMV_FULLSCREEN
#else
#define WZ_DEFAULT_FMV_MODE FMV_2X
#endif

struct WARZONE_GLOBALS
{
FMV_MODE FMVmode = FMV_FULLSCREEN;
FMV_MODE FMVmode = WZ_DEFAULT_FMV_MODE;
UDWORD width = 1024;
UDWORD height = 768;
UDWORD videoBufferDepth = 32;
Expand Down

0 comments on commit 306c8e0

Please sign in to comment.