Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbid committed Feb 3, 2023
1 parent 3b41186 commit 470e68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ void main_loop()
if(enable_mouse == 1)
{
glfwGetCursorPos(window, &x, &y);
x -= winw/3.f; // could precompute
y -= winh/3.f; // could precompute
x -= ww/3.f; // could precompute
y -= wh/3.f; // could precompute
x *= 3.f;
y *= 3.f;
x = 2 + (x * rww) * 30;
Expand Down

0 comments on commit 470e68a

Please sign in to comment.