mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-11-13 01:30:11 +01:00
config: clamp resolution scale to 0.25-2.0
This commit is contained in:
1 parent
afc02cd68b
commit
be08d1e7a4
2 files changed
+3
No files matched your search
@@ -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()
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#define NOMINMAX
|
||||
|
||||
#include <windows.h>
|
||||
#include <algorithm>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
Reference in new issue
Block a user