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/space_console/space_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_console') diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index f5c02dbd724..5cc2f00413a 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -149,11 +149,11 @@ static void console_main_region_init(wmWindowManager *wm, ARegion *ar) static void console_cursor(wmWindow *win, ScrArea *sa, ARegion *ar) { SpaceText *st = sa->spacedata.first; - int wmcursor = BC_TEXTEDITCURSOR; + int wmcursor = WM_CURSOR_TEXT_EDIT; if (st->text && BLI_rcti_isect_pt(&st->txtbar, win->eventstate->x - ar->winrct.xmin, st->txtbar.ymin)) { - wmcursor = CURSOR_STD; + wmcursor = WM_CURSOR_DEFAULT; } WM_cursor_set(win, wmcursor); -- cgit v1.2.3