From 930f99f151d0c9a3a2c71d9e6898538e42b67d0a Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Mon, 3 Feb 2020 16:24:05 +0800 Subject: [PATCH] check dirty_info instead of shared_header for update rects --- src/newgdi/gdi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newgdi/gdi.c b/src/newgdi/gdi.c index 03fd0392..ce45c01f 100644 --- a/src/newgdi/gdi.c +++ b/src/newgdi/gdi.c @@ -691,7 +691,7 @@ void __mg_leave_drawing(PDC pdc) if (!dc_IsMemDC (pdc)) kernel_ShowCursorForGDI (TRUE, pdc); #ifdef _MGSCHEMA_COMPOSITING - else if (pdc->surface->shared_header) { + else if (pdc->surface->dirty_info) { GAL_UpdateRect (pdc->surface, pdc->rc_output.left, pdc->rc_output.top, RECTW(pdc->rc_output), RECTH(pdc->rc_output)); @@ -3068,7 +3068,7 @@ void GUIAPI UnlockDC (HDC hdc) kernel_ShowCursorForGDI (TRUE, pdc); } #ifdef _MGSCHEMA_COMPOSITING - else if (pdc->surface->shared_header) { + else if (pdc->surface->dirty_info) { GAL_UpdateRect (pdc->surface, pdc->rc_output.left, pdc->rc_output.top, RECTW(pdc->rc_output), RECTH(pdc->rc_output));