Tocant coses d'Screen, pero no acaba de funcionar be res
This commit is contained in:
@@ -25,7 +25,7 @@ void initOptions()
|
||||
options.video.window.size = 3;
|
||||
#else
|
||||
options.video.mode = ScreenVideoMode::WINDOW;
|
||||
options.video.window.size = 2;
|
||||
options.video.window.zoom = 2;
|
||||
#endif
|
||||
options.video.filter = ScreenFilter::NEAREST;
|
||||
options.video.v_sync = true;
|
||||
@@ -105,7 +105,7 @@ bool loadOptionsFile(std::string file_path)
|
||||
options.video.mode = ScreenVideoMode::WINDOW;
|
||||
}
|
||||
|
||||
options.video.window.size = std::clamp(options.video.window.size, 1, 4);
|
||||
options.video.window.zoom = std::clamp(options.video.window.zoom, 1, 4);
|
||||
|
||||
if (options.game.language != lang::Code::en_UK &&
|
||||
options.game.language != lang::Code::ba_BA &&
|
||||
@@ -137,7 +137,7 @@ bool saveOptionsFile(std::string file_path)
|
||||
file << "\n";
|
||||
|
||||
file << "video.mode=" << static_cast<int>(options.video.mode) << "\n";
|
||||
file << "video.window.size=" << options.video.window.size << "\n";
|
||||
file << "video.window.size=" << options.video.window.zoom << "\n";
|
||||
file << "video.filter=" << static_cast<int>(options.video.filter) << "\n";
|
||||
file << "video.v_sync=" << boolToString(options.video.v_sync) << "\n";
|
||||
file << "video.integer_scale=" << boolToString(options.video.integer_scale) << "\n";
|
||||
@@ -204,10 +204,10 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else if (var == "video.window.size")
|
||||
{
|
||||
options.video.window.size = std::stoi(value);
|
||||
if ((options.video.window.size < 1) || (options.video.window.size > 4))
|
||||
options.video.window.zoom = std::stoi(value);
|
||||
if ((options.video.window.zoom < 1) || (options.video.window.zoom > 4))
|
||||
{
|
||||
options.video.window.size = 3;
|
||||
options.video.window.zoom = 3;
|
||||
}
|
||||
}
|
||||
else if (var == "video.filter")
|
||||
|
||||
Reference in New Issue
Block a user