Skip to content

Commit

Permalink
Don't scale mouse positions coming in from the OS.
Browse files Browse the repository at this point in the history
The OS is already giving us the correct coordinates. No need to scale
them.
  • Loading branch information
Hoikas committed Nov 12, 2024
1 parent eac94a8 commit aad3fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ bool plMouseDevice::MsgReceive(plMessage* msg)
fXPos = pXMsg->fX;

SetCursorX(fXPos);
fWXPos = pXMsg->fWx * fScale;
fWXPos = pXMsg->fWx;
return true;
}

Expand Down Expand Up @@ -529,7 +529,7 @@ bool plMouseDevice::MsgReceive(plMessage* msg)
else
fYPos = pYMsg->fY;

fWYPos = pYMsg->fWy * fScale;
fWYPos = pYMsg->fWy;
SetCursorY(fYPos);

return true;
Expand Down

0 comments on commit aad3fd3

Please sign in to comment.