fix GetMouseWindowPosition()

This commit is contained in:
mushgunAX 2022-10-01 13:49:11 +08:00
parent e046dafced
commit dc8d58d95c
1 changed files with 2 additions and 2 deletions

View File

@ -417,8 +417,8 @@ namespace SHADE
{
POINT p{ mouseScreenX, mouseScreenY };
ScreenToClient(GetActiveWindow(), &p);
if (x) *x = mouseScreenX;
if (y) *y = mouseScreenY;
if (x) *x = p.x;
if (y) *y = p.y;
}
//Get the mouse velocity