mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-05 07:54:43 +00:00
Take pixelscale into account when repositioning cursor
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user