mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Increase the allowed aspect ratio epsilon (#7775)
This commit is contained in:
committed by
GitHub
parent
10f6059f09
commit
4a77801cb3
@@ -71,7 +71,6 @@ private:
|
||||
int32_t _height = 0;
|
||||
int32_t _scaleQuality = 0;
|
||||
|
||||
bool _resolutionsAllowAnyAspectRatio = false;
|
||||
std::vector<Resolution> _fsResolutions;
|
||||
|
||||
bool _steamOverlayActive = false;
|
||||
@@ -699,7 +698,7 @@ private:
|
||||
if (mode.w > 0 && mode.h > 0)
|
||||
{
|
||||
float aspectRatio = (float)mode.w / mode.h;
|
||||
if (_resolutionsAllowAnyAspectRatio || std::fabs(desktopAspectRatio - aspectRatio) < 0.0001f)
|
||||
if (std::fabs(desktopAspectRatio - aspectRatio) < 0.1f)
|
||||
{
|
||||
resolutions.push_back({ mode.w, mode.h });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user