Skip to content

Commit

Permalink
modified: source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alphayellow1 committed Nov 11, 2024
1 parent 78558cb commit 61ed21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/fixes/F1WorldGrandPrix2000WidescreenFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -234,7 +234,7 @@ int main()
file.seekp(kC4Offset);
file.write(reinterpret_cast<const char *>(&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<const char *>(&c5), sizeof(c5));

Expand Down

0 comments on commit 61ed21e

Please sign in to comment.