changeset 78:7654af1b1094

Remove the Draw() from display_configure(). Several platforms can't draw in the configure event... So instead of calling Draw() instead call dw_render_redraw(). This will generate a display_expose() that can actually draw.
author Brian Smith <brian@dbsoft.org>
date Wed, 11 Aug 2021 06:51:11 -0500
parents 869801e5ff04
children b1b8397fcdc7
files cc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cc.c	Tue Aug 10 14:18:33 2021 -0500
+++ b/cc.c	Wed Aug 11 06:51:11 2021 -0500
@@ -695,9 +695,9 @@
 
 				inst->pixmap[z] = dw_pixmap_new(inst->hwndDraw[z], width, height, 0);
 
-				inst->Draw(inst);
+				dw_mutex_unlock(hMtx);
 
-				dw_mutex_unlock(hMtx);
+				dw_render_redraw(hwnd);
 
 				break;
 			}