config: clamp resolution scale to 0.25-2.0

This commit is contained in:
Hyper 2024-10-21 13:09:39 +01:00
parent afc02cd68b
commit be08d1e7a4
2 changed files with 3 additions and 0 deletions

View file

@ -49,6 +49,8 @@ void Config::Load()
{
printf("Failed to parse configuration: %s\n", err.what());
}
ResolutionScale = std::clamp(ResolutionScale, 0.25f, 2.0f);
}
void Config::Save()

View file

@ -3,6 +3,7 @@
#define NOMINMAX
#include <windows.h>
#include <algorithm>
#include <mutex>
#include <vector>
#include <string>