mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-19 01:17:36 +00:00
Take pixelscale into account when repositioning cursor
This commit is contained in:
parent
d2700aa637
commit
78bcb188a8
@ -517,7 +517,7 @@ void sdl_set_invert(int flag) {
|
||||
sdl_notify_damage(0, 0, sdl_displaywidth, sdl_displayheight);
|
||||
}
|
||||
void sdl_setMousePosition(int x, int y) {
|
||||
SDL_WarpMouseInWindow(sdl_window, x, y);
|
||||
SDL_WarpMouseInWindow(sdl_window, x * sdl_pixelscale, y * sdl_pixelscale);
|
||||
}
|
||||
#if defined(SDLRENDERING)
|
||||
void sdl_update_display_rendering() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user