From 6c0926e802faffb242f36c6bccd1b7b36dec8bee Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Jun 2014 11:27:53 +1000 Subject: Code cleanup: use const for mouse location arg --- source/blender/windowmanager/WM_api.h | 2 +- source/blender/windowmanager/intern/wm_cursors.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 9e50b01cd23..9886d403f74 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -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, diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c index 6fd3b426142..68fd32cb450 100644 --- a/source/blender/windowmanager/intern/wm_cursors.c +++ b/source/blender/windowmanager/intern/wm_cursors.c @@ -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) { -- cgit v1.2.3