MouseCursor: DPI handling hotfix

This commit is contained in:
Chuck Walbourn 2017-02-07 14:03:01 -08:00
Родитель a0f5210342
Коммит 767fc50890
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -382,8 +382,8 @@ protected:
// Use the window location and the virtual cursors location to reposition the windows mouse
Windows::Foundation::Point newPoint;
newPoint.X = sender->Bounds.X + m_virtualCursorOnscreenPosition.X;
newPoint.Y = sender->Bounds.Y + m_virtualCursorOnscreenPosition.Y;
newPoint.X = sender->Bounds.X + ConvertPixelsToDips(m_virtualCursorOnscreenPosition.X);
newPoint.Y = sender->Bounds.Y + ConvertPixelsToDips(m_virtualCursorOnscreenPosition.Y);
sender->PointerPosition = newPoint;
m_clipCursor = false;
@ -402,8 +402,8 @@ protected:
// Use the window location and the virtual cursors location to reposition the windows mouse
Windows::Foundation::Point newPoint;
newPoint.X = sender->Bounds.X + m_virtualCursorOnscreenPosition.X;
newPoint.Y = sender->Bounds.Y + m_virtualCursorOnscreenPosition.Y;
newPoint.X = sender->Bounds.X + ConvertPixelsToDips(m_virtualCursorOnscreenPosition.X);
newPoint.Y = sender->Bounds.Y + ConvertPixelsToDips(m_virtualCursorOnscreenPosition.Y);
sender->PointerPosition = newPoint;
m_clipCursor = false;