Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-06-24 07:00:36 +0300
committerCampbell Barton <campbell@blender.org>2022-06-24 07:00:36 +0300
commit11f38f59e2b2ed45dd26628d39d73019e263a69f (patch)
tree0197b325167c450c691ae389fafc734bc44e98ab /source/blender/windowmanager/intern/wm_window.c
parent4c4e8cc926a672ac60692b3fb8c20249f9cae679 (diff)
Cleanup: remove unused function WM_cursor_compatible_xy
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c9
1 files changed, 0 insertions, 9 deletions
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;
- }
-}
-
/** \} */
/* -------------------------------------------------------------------- */