diff --git a/UnleashedRecomp/config.cpp b/UnleashedRecomp/config.cpp index 00c412c..5826b02 100644 --- a/UnleashedRecomp/config.cpp +++ b/UnleashedRecomp/config.cpp @@ -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() diff --git a/UnleashedRecomp/stdafx.h b/UnleashedRecomp/stdafx.h index 6233ba0..4f8f226 100644 --- a/UnleashedRecomp/stdafx.h +++ b/UnleashedRecomp/stdafx.h @@ -3,6 +3,7 @@ #define NOMINMAX #include +#include #include #include #include