# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1615295655 0 # Node ID 707836e00e5ec5bc30a04f6e242e513316a3de39 # Parent 314d417e55c4464f41edec18a793870c95cae700 Mac: setNeedsDisplay:YES needs to be on the main thread... So move dw_render_redraw() into the thread safety system. diff -r 314d417e55c4 -r 707836e00e5e mac/dw.m --- a/mac/dw.m Mon Mar 08 23:50:57 2021 +0000 +++ b/mac/dw.m Tue Mar 09 13:14:15 2021 +0000 @@ -6695,11 +6695,16 @@ * Parameters: * handle: A handle to a render widget to be redrawn. */ -void API dw_render_redraw(HWND handle) -{ +DW_FUNCTION_DEFINITION(dw_render_redraw, void, HWND handle) +DW_FUNCTION_ADD_PARAM1(handle) +DW_FUNCTION_NO_RETURN(dw_render_redraw) +DW_FUNCTION_RESTORE_PARAM1(handle, HWND) +{ + DW_FUNCTION_INIT; DWRender *render = (DWRender *)handle; [render setNeedsDisplay:YES]; + DW_FUNCTION_RETURN_NOTHING; } /* Sets the current foreground drawing color.