diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-07 02:34:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-07 02:34:29 +0400 |
commit | 35cd649c6625b55aad277fdbeaa87cc5d21b65ce (patch) | |
tree | dc5a73685f89ea525b40e62534d8af4e9de7fa4b /source/blender/editors/space_image | |
parent | da2c76d9f7e1a29ad91ab8aaf95bb912800296a4 (diff) |
rename cursor setting functions to make modal set/restore more clearly related functions.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index 6a3259e030e..cbd3917cacb 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -245,7 +245,7 @@ static void image_view_pan_init(bContext *C, wmOperator *op, const wmEvent *even ViewPanData *vpd; op->customdata = vpd = MEM_callocN(sizeof(ViewPanData), "ImageViewPanData"); - WM_cursor_modal(CTX_wm_window(C), BC_NSEW_SCROLLCURSOR); + WM_cursor_modal_set(CTX_wm_window(C), BC_NSEW_SCROLLCURSOR); vpd->x = event->x; vpd->y = event->y; @@ -267,7 +267,7 @@ static void image_view_pan_exit(bContext *C, wmOperator *op, int cancel) ED_region_tag_redraw(CTX_wm_region(C)); } - WM_cursor_restore(CTX_wm_window(C)); + WM_cursor_modal_restore(CTX_wm_window(C)); MEM_freeN(op->customdata); } @@ -391,7 +391,7 @@ static void image_view_zoom_init(bContext *C, wmOperator *op, const wmEvent *eve ViewZoomData *vpd; op->customdata = vpd = MEM_callocN(sizeof(ViewZoomData), "ImageViewZoomData"); - WM_cursor_modal(CTX_wm_window(C), BC_NSEW_SCROLLCURSOR); + WM_cursor_modal_set(CTX_wm_window(C), BC_NSEW_SCROLLCURSOR); vpd->origx = event->x; vpd->origy = event->y; @@ -425,7 +425,7 @@ static void image_view_zoom_exit(bContext *C, wmOperator *op, int cancel) if (vpd->timer) WM_event_remove_timer(CTX_wm_manager(C), vpd->timer->win, vpd->timer); - WM_cursor_restore(CTX_wm_window(C)); + WM_cursor_modal_restore(CTX_wm_window(C)); MEM_freeN(op->customdata); } @@ -2557,7 +2557,7 @@ static void image_record_composite_exit(bContext *C, wmOperator *op) scene->r.cfra = rcd->old_cfra; - WM_cursor_restore(CTX_wm_window(C)); + WM_cursor_modal_restore(CTX_wm_window(C)); if (rcd->timer) WM_event_remove_timer(CTX_wm_manager(C), CTX_wm_window(C), rcd->timer); |