move Set_mouse_position() to sdlscreen.c / win32screen.c / etc.

This commit is contained in:
Thomas Bernard
2019-02-04 18:20:51 +01:00
parent d5645dec26
commit 206c67e77c
6 changed files with 31 additions and 11 deletions

View File

@@ -1855,15 +1855,6 @@ void Adjust_mouse_sensitivity(word fullscreen)
(void)fullscreen;
}
void Set_mouse_position(void)
{
#if defined(USE_SDL)
SDL_WarpMouse(Mouse_X*Pixel_width, Mouse_Y*Pixel_height);
#elif defined(USE_SDL2)
//SDL_WarpMouseInWindow(Window_SDL, Mouse_X*Pixel_width, Mouse_Y*Pixel_height);
#endif
}
static int Color_cycling(void)
{
static byte offset[16];