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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-26 17:22:04 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-26 17:26:04 +0300
commitda84bd3c117590c6bd981e5c24a0591347d9d689 (patch)
tree045a16726276668e6ee184e94902a569d0cf9447 /source/blender/windowmanager/intern/wm_cursors.c
parentda63ac5576334d2654856f45b627e1d04f31c134 (diff)
Cleanup: cursor header file
Diffstat (limited to 'source/blender/windowmanager/intern/wm_cursors.c')
-rw-r--r--source/blender/windowmanager/intern/wm_cursors.c26
1 files changed, 23 insertions, 3 deletions
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) {