60
« on: April 03, 2022, 11:01:01 AM »
The email you sent me pointed out the source of the issue to me. The if conditions were incorrect. I've fixed them in github; let me know if that works for you or not (I don't have multiple screens to test it with).
-----
@@ -131,7 +131,7 @@ bool SDL::initialize( Configuration &config )
Logger::write( Logger::ZONE_ERROR, "Configuration", "Missing property \"horizontal\"" + std::to_string(i) );
return false;
}
- else if ( hString != "stretch" && (i == 0 && !config.getProperty( "horizontal", windowWidth_ )) && !config.getProperty( "horizontal" + std::to_string(i), windowWidth_ ))
+ else if ( hString != "stretch" && (i != 0 || !config.getProperty( "horizontal", windowWidth_ )) && !config.getProperty( "horizontal" + std::to_string(i), windowWidth_ ))
{
Logger::write( Logger::ZONE_ERROR, "Configuration", "Invalid property value for \"horizontal\"" + std::to_string(i) );
return false;
@@ -148,7 +148,7 @@ bool SDL::initialize( Configuration &config )
Logger::write( Logger::ZONE_ERROR, "Configuration", "Missing property \"vertical\"" + std::to_string(i) );
return false;
}
- else if ( vString != "stretch" && (i == 0 && !config.getProperty( "vertical", windowHeight_ )) && !config.getProperty( "vertical" + std::to_string(i), windowHeight_ ) )
+ else if ( vString != "stretch" && (i != 0 || !config.getProperty( "vertical", windowHeight_ )) && !config.getProperty( "vertical" + std::to_string(i), windowHeight_ ) )
{
Logger::write( Logger::ZONE_ERROR, "Configuration", "Invalid property value for \"vertical\"" + std::to_string(i) );
return false;