mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
Engine GUI: Don't translate mouse coordinates in GuiCanvas::setCursorPos()
Removed translating passed mouse pointer coordinates from client to screen space. Source comments and exposed canvas script API help doc line for the same function states that passed mouse pointer coordinates are supposed to already be in screen space.
This commit is contained in:
parent
925f6ebe41
commit
01a3163d40
1 changed files with 1 additions and 2 deletions
|
|
@ -549,8 +549,7 @@ void GuiCanvas::setCursorPos(const Point2I &pt)
|
|||
}
|
||||
else
|
||||
{
|
||||
Point2I screenPt( mPlatformWindow->clientToScreen( pt ) );
|
||||
mPlatformWindow->setCursorPosition( screenPt.x, screenPt.y );
|
||||
mPlatformWindow->setCursorPosition(pt.x, pt.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue