Cleanup: remove unused function WM_cursor_compatible_xy

This commit is contained in:
Campbell Barton 2022-06-24 14:00:36 +10:00
parent 4c4e8cc926
commit 11f38f59e2
2 changed files with 0 additions and 13 deletions

View File

@ -314,10 +314,6 @@ void WM_paint_cursor_tag_redraw(struct wmWindow *win, struct ARegion *region);
* This function requires access to the GHOST_SystemHandle (g_system).
*/
void WM_cursor_warp(struct wmWindow *win, int x, int y);
/**
* Set x, y to values we can actually position the cursor to.
*/
void WM_cursor_compatible_xy(wmWindow *win, int *x, int *y);
/* Handlers. */

View File

@ -2024,15 +2024,6 @@ void WM_cursor_warp(wmWindow *win, int x, int y)
}
}
void WM_cursor_compatible_xy(wmWindow *win, int *x, int *y)
{
float f = GHOST_GetNativePixelSize(win->ghostwin);
if (f != 1.0f) {
*x = (int)(*x / f) * f;
*y = (int)(*y / f) * f;
}
}
/** \} */
/* -------------------------------------------------------------------- */