Skip to content

Commit

Permalink
Save StretchWindow variable for different window modes
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiyansKing committed Dec 23, 2022
1 parent 7bd686d commit 542b9a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions D3D11Engine/GothicAPI.cpp
Expand Up @@ -4138,6 +4138,7 @@ XRESULT GothicAPI::LoadMenuSettings( const std::string& file ) {
zCOption::GetOptions()->WriteString( section, "zStartupWindowed", defValue );
WritePrivateProfileStringA( "Display", "DisplayFlip", "0", ini.c_str() );
WritePrivateProfileStringA( "Display", "LowLatency", "0", ini.c_str() );
WritePrivateProfileStringA( "Display", "StretchWindow", "1", ini.c_str() );
break;
}
case WINDOW_MODE_FULLSCREEN_BORDERLESS: {
Expand All @@ -4146,6 +4147,7 @@ XRESULT GothicAPI::LoadMenuSettings( const std::string& file ) {
s.StretchWindow = true;
WritePrivateProfileStringA( "Display", "DisplayFlip", "1", ini.c_str() );
WritePrivateProfileStringA( "Display", "LowLatency", "0", ini.c_str() );
WritePrivateProfileStringA( "Display", "StretchWindow", "1", ini.c_str() );
break;
}
case WINDOW_MODE_FULLSCREEN_LOWLATENCY: {
Expand All @@ -4154,6 +4156,7 @@ XRESULT GothicAPI::LoadMenuSettings( const std::string& file ) {
s.StretchWindow = true;
WritePrivateProfileStringA( "Display", "DisplayFlip", "1", ini.c_str() );
WritePrivateProfileStringA( "Display", "LowLatency", "1", ini.c_str() );
WritePrivateProfileStringA( "Display", "StretchWindow", "1", ini.c_str() );
break;
}
case WINDOW_MODE_WINDOWED: {
Expand All @@ -4163,6 +4166,7 @@ XRESULT GothicAPI::LoadMenuSettings( const std::string& file ) {
zCOption::GetOptions()->WriteString( section, "zStartupWindowed", defValue );
WritePrivateProfileStringA( "Display", "DisplayFlip", "0", ini.c_str() );
WritePrivateProfileStringA( "Display", "LowLatency", "0", ini.c_str() );
WritePrivateProfileStringA( "Display", "StretchWindow", "0", ini.c_str() );
break;
}
}
Expand Down

0 comments on commit 542b9a7

Please sign in to comment.