Fix T37947: large cursors now also work on linux/mac for the edit mode cross.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 31 Dec 2013 01:00:21 +0000 (02:00 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 31 Dec 2013 01:00:21 +0000 (02:00 +0100)
source/blender/windowmanager/intern/wm_cursors.c

index 9b308553006b5b359dcbec746b2e1d26bbb6940f..e6fc2cf6bb2c3f41718577a65d02b53e3634f003 100644 (file)
@@ -122,6 +122,11 @@ void WM_cursor_set(wmWindow *win, int curs)
         * only 1 pixel thick, use another one instead */
        if (curs == CURSOR_EDIT)
                curs = BC_CROSSCURSOR;
+#else
+       /* in case of large cursor, also use custom cursor because
+        * large cursors don't work for system cursors */
+       if (U.curssize && curs == CURSOR_EDIT)
+               curs = BC_CROSSCURSOR;
 #endif
 
        GHOST_SetCursorVisibility(win->ghostwin, 1);