projects
/
blender.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2.5
[blender.git]
/
source
/
blender
/
editors
/
interface
/
view2d_ops.c
diff --git
a/source/blender/editors/interface/view2d_ops.c
b/source/blender/editors/interface/view2d_ops.c
index d84932c82feab15ac29b2a03d050c9ab647d77e3..3c9172b8a288002397a83d46a1235cd3df485584 100644
(file)
--- a/
source/blender/editors/interface/view2d_ops.c
+++ b/
source/blender/editors/interface/view2d_ops.c
@@
-209,14
+209,12
@@
static int view_pan_invoke(bContext *C, wmOperator *op, wmEvent *event)
RNA_int_set(op->ptr, "deltax", 0);
RNA_int_set(op->ptr, "deltay", 0);
RNA_int_set(op->ptr, "deltax", 0);
RNA_int_set(op->ptr, "deltay", 0);
-#if 0 // XXX - enable this when cursors are working properly
if (v2d->keepofs & V2D_LOCKOFS_X)
if (v2d->keepofs & V2D_LOCKOFS_X)
- WM_
set_cursor(C
, BC_NS_SCROLLCURSOR);
+ WM_
cursor_modal(C->window
, BC_NS_SCROLLCURSOR);
else if (v2d->keepofs & V2D_LOCKOFS_Y)
else if (v2d->keepofs & V2D_LOCKOFS_Y)
- WM_
set_cursor(C
, BC_EW_SCROLLCURSOR);
+ WM_
cursor_modal(C->window
, BC_EW_SCROLLCURSOR);
else
else
- WM_set_cursor(C, BC_NSEW_SCROLLCURSOR);
-#endif // XXX - enable this when cursors are working properly
+ WM_cursor_modal(C->window, BC_NSEW_SCROLLCURSOR);
/* add temp handler */
WM_event_add_modal_handler(C, &C->window->handlers, op);
/* add temp handler */
WM_event_add_modal_handler(C, &C->window->handlers, op);
@@
-251,7
+249,7
@@
static int view_pan_modal(bContext *C, wmOperator *op, wmEvent *event)
RNA_int_set(op->ptr, "deltay", (vpd->starty - vpd->lasty));
view_pan_exit(C, op);
RNA_int_set(op->ptr, "deltay", (vpd->starty - vpd->lasty));
view_pan_exit(C, op);
- //WM_set_cursor(C, CURSOR_STD); // XXX - enable this when cursors are working properly
+ WM_cursor_restore(C->window);
return OPERATOR_FINISHED;
}
return OPERATOR_FINISHED;
}
@@
-689,14
+687,12
@@
static int view_zoomdrag_invoke(bContext *C, wmOperator *op, wmEvent *event)
RNA_float_set(op->ptr, "deltax", 0);
RNA_float_set(op->ptr, "deltay", 0);
RNA_float_set(op->ptr, "deltax", 0);
RNA_float_set(op->ptr, "deltay", 0);
-#if 0 // XXX - enable this when cursors are working properly
if (v2d->keepofs & V2D_LOCKOFS_X)
if (v2d->keepofs & V2D_LOCKOFS_X)
- WM_
set_cursor(C
, BC_NS_SCROLLCURSOR);
+ WM_
cursor_modal(C->window
, BC_NS_SCROLLCURSOR);
else if (v2d->keepofs & V2D_LOCKOFS_Y)
else if (v2d->keepofs & V2D_LOCKOFS_Y)
- WM_
set_cursor(C
, BC_EW_SCROLLCURSOR);
+ WM_
cursor_modal(C->window
, BC_EW_SCROLLCURSOR);
else
else
- WM_set_cursor(C, BC_NSEW_SCROLLCURSOR);
-#endif // XXX - enable this when cursors are working properly
+ WM_cursor_modal(C->window, BC_NSEW_SCROLLCURSOR);
/* add temp handler */
WM_event_add_modal_handler(C, &C->window->handlers, op);
/* add temp handler */
WM_event_add_modal_handler(C, &C->window->handlers, op);
@@
-784,7
+780,7
@@
static int view_zoomdrag_modal(bContext *C, wmOperator *op, wmEvent *event)
/* free customdata */
view_zoomdrag_exit(C, op);
/* free customdata */
view_zoomdrag_exit(C, op);
- //WM_set_cursor(C, CURSOR_STD); // XXX - enable this when cursors are working properly
+ WM_cursor_restore(C->window);
return OPERATOR_FINISHED;
}
return OPERATOR_FINISHED;
}