Code cleanup: use const for mouse location arg

This commit is contained in:
Campbell Barton 2014-06-11 11:27:53 +10:00
parent bf462149a6
commit 6c0926e802
4 changed files with 4 additions and 4 deletions

@ -407,7 +407,7 @@ extern GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle,
*/ */
extern GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle, extern GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle,
GHOST_TGrabCursorMode mode, 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. * Access to mouse button and keyboard states.

@ -363,7 +363,7 @@ GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle,
GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle, GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle,
GHOST_TGrabCursorMode mode, 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_IWindow *window = (GHOST_IWindow *) windowhandle;
GHOST_Rect bounds_rect, bounds_win; GHOST_Rect bounds_rect, bounds_win;

@ -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_modal_restore(struct wmWindow *win);
void WM_cursor_wait (bool val); 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_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_cursor_time (struct wmWindow *win, int nr);
void *WM_paint_cursor_activate(struct wmWindowManager *wm, void *WM_paint_cursor_activate(struct wmWindowManager *wm,

@ -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 ((G.debug & G_DEBUG) == 0) {
if (win && win->ghostwin) { if (win && win->ghostwin) {