From b29ad7c91aac1398377000c24a56038a73a3e597 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 26 Sep 2019 14:31:48 +0200 Subject: WM: clean up cursors constants and code There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197 --- source/blender/editors/gpencil/annotate_paint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/gpencil/annotate_paint.c') diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c index 22f1753a810..f2d039bb47c 100644 --- a/source/blender/editors/gpencil/annotate_paint.c +++ b/source/blender/editors/gpencil/annotate_paint.c @@ -1560,10 +1560,10 @@ static int gpencil_draw_init(bContext *C, wmOperator *op, const wmEvent *event) static void gpencil_draw_cursor_set(tGPsdata *p) { if (p->paintmode == GP_PAINTMODE_ERASER) { - WM_cursor_modal_set(p->win, BC_CROSSCURSOR); /* XXX need a better cursor */ + WM_cursor_modal_set(p->win, WM_CURSOR_CROSS); /* XXX need a better cursor */ } else { - WM_cursor_modal_set(p->win, BC_PAINTBRUSHCURSOR); + WM_cursor_modal_set(p->win, WM_CURSOR_PAINT_BRUSH); } } -- cgit v1.2.3