mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Implement SkiaDisplay::setMousePosition()
This commit is contained in:
parent
73f4de1b5d
commit
237549b818
@ -121,6 +121,7 @@ bool SkiaDisplay::setNativeMouseCursor(NativeCursor cursor)
|
||||
|
||||
void SkiaDisplay::setMousePosition(const gfx::Point& position)
|
||||
{
|
||||
m_window.setMousePosition(position);
|
||||
}
|
||||
|
||||
void SkiaDisplay::captureMouse()
|
||||
|
@ -87,6 +87,13 @@ namespace she {
|
||||
m_captureMouse = false;
|
||||
}
|
||||
|
||||
void setMousePosition(const gfx::Point& position) {
|
||||
POINT pos = { position.x * m_scale,
|
||||
position.y * m_scale };
|
||||
ClientToScreen(m_hwnd, &pos);
|
||||
SetCursorPos(pos.x, pos.y);
|
||||
}
|
||||
|
||||
void invalidate() {
|
||||
InvalidateRect(m_hwnd, NULL, FALSE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user