Skip to content

Commit

Permalink
PS: fix mouse X positional scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
xan1242 committed Apr 30, 2022
1 parent 21a75f0 commit 4bfee84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NFS_XtendedInput_FEng.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ void UpdateFECursorPos()
MousePos.y = (int)((float)(MousePos.y) * ratio);

#ifdef GAME_PROSTREET
MousePos.x = MousePos.x - 107;
float window_aspect = (float)(windowRect.right - windowRect.left) / (float)(windowRect.bottom - windowRect.top);
float shiftpos = ((window_aspect * 480.0f) - 640.0f) / 2.0f;
MousePos.x = MousePos.x - shiftpos;
#endif

// car orbiting position calculation - always relative to old
Expand Down

0 comments on commit 4bfee84

Please sign in to comment.