Code cleanup: use const for mouse location arg
authorCampbell Barton <ideasman42@gmail.com>
Wed, 11 Jun 2014 01:27:53 +0000 (11:27 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jun 2014 14:47:12 +0000 (00:47 +1000)
intern/ghost/GHOST_C-api.h
intern/ghost/intern/GHOST_C-api.cpp
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_cursors.c

index aae90179be5cd74365ddb8500316d6e760b139cd..9b623077b2869cbf2819c5a0939b7eac9a854599 100644 (file)
@@ -407,7 +407,7 @@ extern GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle,
  */
 extern GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle,
                                           GHOST_TGrabCursorMode mode,
-                                          int bounds[4], int mouse_ungrab_xy[2]);
+                                          int bounds[4], const int mouse_ungrab_xy[2]);
 
 /***************************************************************************************
  * Access to mouse button and keyboard states.
index 8d4498ed759b11951bed50a4790f611857b7f665..eaa59f096aab2784edb2688aa9f246f34778928d 100644 (file)
@@ -363,7 +363,7 @@ GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle,
 
 GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle,
                                    GHOST_TGrabCursorMode mode,
-                                   int bounds[4], int mouse_ungrab_xy[2])
+                                   int bounds[4], const int mouse_ungrab_xy[2])
 {
        GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
        GHOST_Rect bounds_rect, bounds_win;
index 9e50b01cd235ce7a3b87b3168bcb673cc679319b..9886d403f74ddccabc3bd8bb4f346b0b97971aa9 100644 (file)
@@ -118,7 +118,7 @@ void                WM_cursor_modal_set(struct wmWindow *win, int curs);
 void           WM_cursor_modal_restore(struct wmWindow *win);
 void           WM_cursor_wait          (bool val);
 void           WM_cursor_grab_enable(struct wmWindow *win, bool wrap, bool hide, int bounds[4]);
-void           WM_cursor_grab_disable(struct wmWindow *win, int mouse_ungrab_xy[2]);
+void           WM_cursor_grab_disable(struct wmWindow *win, const int mouse_ungrab_xy[2]);
 void           WM_cursor_time          (struct wmWindow *win, int nr);
 
 void           *WM_paint_cursor_activate(struct wmWindowManager *wm,
index 6fd3b426142f013e0ae88800b3e7d4c7016d0f37..68fd32cb450d169c523e498c8e04c6ea576c0283 100644 (file)
@@ -230,7 +230,7 @@ void WM_cursor_grab_enable(wmWindow *win, bool wrap, bool hide, int bounds[4])
        }
 }
 
-void WM_cursor_grab_disable(wmWindow *win, int mouse_ungrab_xy[2])
+void WM_cursor_grab_disable(wmWindow *win, const int mouse_ungrab_xy[2])
 {
        if ((G.debug & G_DEBUG) == 0) {
                if (win && win->ghostwin) {