From 99e186671247b7dbcb01e9c95709a251fdbefc87 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 5 Mar 2021 10:36:57 +0100 Subject: Cleanup: Use boolean in WM_cursor_wait --- source/blender/windowmanager/intern/wm_files.c | 8 ++++---- source/blender/windowmanager/intern/wm_operators.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index d7b33d20c0f..13f3afdfc4c 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -711,7 +711,7 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports) /* so we can get the error message */ errno = 0; - WM_cursor_wait(1); + WM_cursor_wait(true); wm_file_read_pre(C, use_data, use_userdef); @@ -809,7 +809,7 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports) } } - WM_cursor_wait(0); + WM_cursor_wait(false); return success; } @@ -1498,7 +1498,7 @@ static bool wm_file_write(bContext *C, } /* don't forget not to return without! */ - WM_cursor_wait(1); + WM_cursor_wait(true); ED_editors_flush_edits(bmain); @@ -1560,7 +1560,7 @@ static bool wm_file_write(bContext *C, MEM_freeN(thumb); } - WM_cursor_wait(0); + WM_cursor_wait(false); return ok; } diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index fa34c561147..660e502a3d7 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3234,7 +3234,7 @@ static int redraw_timer_exec(bContext *C, wmOperator *op) */ struct Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C); - WM_cursor_wait(1); + WM_cursor_wait(true); double time_start = PIL_check_seconds_timer(); @@ -3257,7 +3257,7 @@ static int redraw_timer_exec(bContext *C, wmOperator *op) RNA_enum_description(redraw_timer_type_items, type, &infostr); - WM_cursor_wait(0); + WM_cursor_wait(false); BKE_reportf(op->reports, RPT_WARNING, -- cgit v1.2.3