Cleanup: remove unused function WM_cursor_compatible_xy
This commit is contained in:
parent
4c4e8cc926
commit
11f38f59e2
|
@ -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. */
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue