From da84bd3c117590c6bd981e5c24a0591347d9d689 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 26 Sep 2019 16:22:04 +0200 Subject: Cleanup: cursor header file --- source/blender/windowmanager/intern/wm_cursors.c | 26 +++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_cursors.c') diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c index 38297dbd8ba..96353fc472a 100644 --- a/source/blender/windowmanager/intern/wm_cursors.c +++ b/source/blender/windowmanager/intern/wm_cursors.c @@ -45,6 +45,29 @@ #include "wm_cursors.h" #include "wm_window.h" +/* Blender custom cursor. */ +typedef struct BCursor { + char *small_bm; + char *small_mask; + + char small_sizex; + char small_sizey; + char small_hotx; + char small_hoty; + + char *big_bm; + char *big_mask; + + char big_sizex; + char big_sizey; + char big_hotx; + char big_hoty; + + bool can_invert_color; +} BCursor; + +static BCursor *BlenderCursor[WM_CURSOR_NUM] = {0}; + /* Blender cursor to GHOST standard cursor conversion. */ static GHOST_TStandardCursor convert_to_ghost_standard_cursor(WMCursorType curs) { @@ -143,9 +166,6 @@ static void window_set_custom_cursor_ex(wmWindow *win, BCursor *cursor) } } -/* Cursor Globals */ -static BCursor *BlenderCursor[WM_CURSOR_NUM] = {0}; - void WM_cursor_set(wmWindow *win, int curs) { if (win == NULL || G.background) { -- cgit v1.2.3