From 11f38f59e2b2ed45dd26628d39d73019e263a69f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 24 Jun 2022 14:00:36 +1000 Subject: Cleanup: remove unused function WM_cursor_compatible_xy --- source/blender/windowmanager/intern/wm_window.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_window.c') diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 91ec45da6d4..49389634462 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -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; - } -} - /** \} */ /* -------------------------------------------------------------------- */ -- cgit v1.2.3