mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-03-03 10:18:33 -06:00
config: clamp resolution scale to 0.25-2.0
This commit is contained in:
@@ -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