mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
config: clamp resolution scale to 0.25-2.0
This commit is contained in:
parent
afc02cd68b
commit
be08d1e7a4
2 changed files with 3 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue