rename cursor setting functions to make modal set/restore more clearly related functions.
[blender-staging.git] / source / blender / windowmanager / intern / wm_cursors.c
index e76d38dd0e2ac94a524b63fa74631cc06cca26e7..9b308553006b5b359dcbec746b2e1d26bbb6940f 100644 (file)
@@ -150,7 +150,7 @@ void WM_cursor_set(wmWindow *win, int curs)
        }
 }
 
-void WM_cursor_modal(wmWindow *win, int val)
+void WM_cursor_modal_set(wmWindow *win, int val)
 {
        if (win->lastcursor == 0)
                win->lastcursor = win->cursor;
@@ -158,7 +158,7 @@ void WM_cursor_modal(wmWindow *win, int val)
        WM_cursor_set(win, val);
 }
 
-void WM_cursor_restore(wmWindow *win)
+void WM_cursor_modal_restore(wmWindow *win)
 {
        win->modalcursor = 0;
        if (win->lastcursor)
@@ -175,10 +175,10 @@ void WM_cursor_wait(bool val)
                
                for (; win; win = win->next) {
                        if (val) {
-                               WM_cursor_modal(win, BC_WAITCURSOR);
+                               WM_cursor_modal_set(win, BC_WAITCURSOR);
                        }
                        else {
-                               WM_cursor_restore(win);
+                               WM_cursor_modal_restore(win);
                        }
                }
        }