From 61ed21e564a960d5808ec65e9dd8badddcf55484 Mon Sep 17 00:00:00 2001 From: AlphaYellow Date: Mon, 11 Nov 2024 16:45:57 +0000 Subject: [PATCH] modified: source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp --- source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp b/source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp index c083c53c..31d8cbbf 100644 --- a/source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp +++ b/source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp @@ -29,7 +29,7 @@ fstream file; int choice1, choice2, tempChoice; bool fileNotFound, validKeyPressed; float newAspectRatioAsFloat, newCameraFOVasFloat; -double newCameraFOV, newCameraFOVValue, newAspectRatio; +double newCameraFOV, newAspectRatio; char ch; // Function to handle user input in choices @@ -234,7 +234,7 @@ int main() file.seekp(kC4Offset); file.write(reinterpret_cast(&c4), sizeof(c4)); - uint32_t c5 = (600 * (newWidth / newHeight) - 800) / 2; + uint32_t c5 = (600 * newWidth / newHeight - 800) / 2; file.seekp(kC5Offset); file.write(reinterpret_cast(&c5), sizeof(c5));