Commit: 11f38f59e2b2ed45dd26628d39d73019e263a69f Author: Campbell Barton Date: Fri Jun 24 14:00:36 2022 +1000 Branches: master https://developer.blender.org/rB11f38f59e2b2ed45dd26628d39d73019e263a69f
Cleanup: remove unused function WM_cursor_compatible_xy =================================================================== M source/blender/windowmanager/WM_api.h M source/blender/windowmanager/intern/wm_window.c =================================================================== diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 60cded3b869..ab48d6f6c39 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -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. */ 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; - } -} - /** \} */ /* -------------------------------------------------------------------- */ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs