check dirty_info instead of shared_header for update rects

This commit is contained in:
Vincent Wei
2020-02-03 16:24:05 +08:00
parent 4a54b94e08
commit 930f99f151
+2 -2
View File
@@ -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));