Skip to content

Commit b2754cc

Browse files
committed
FIX: Remove full-window SRCERASE to eliminate black screen flashes
1 parent 38f8255 commit b2754cc

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/os/win32/host-window.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -718,29 +718,10 @@ void Paint_Window(HWND window);
718718

719719
if (wingob) {
720720
BeginPaint(window, (LPPAINTSTRUCT) &ps);
721-
722721
cmp = GOB_COMPOSITOR(wingob);
723-
724722
//printf("PS: %f %f %f %f - %x %x\n", ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom, ps.hdc, cmp->wind_DC);
725-
726-
727-
728-
//printf("erase %i %i %i %i\n", cmp->win_rect.left, cmp->win_rect.top, cmp->win_rect.right, cmp->win_rect.bottom);
729-
//HBRUSH TransperrantBrush = CreateSolidBrush(GetSysColor(COLOR_ACTIVECAPTION)); //(HBRUSH)GetStockObject(NULL_BRUSH); //
730-
//SetBkMode(cmp->back_DC, OPAQUE);
731-
//FillRect(cmp->back_DC, &cmp->win_rect, TransperrantBrush);
732-
//FillRect(cmp->wind_DC, &cmp->win_rect, TransperrantBrush);
733-
//DeleteObject(TransperrantBrush);
734-
735-
BitBlt( cmp->wind_DC, 0, 0, GOB_LOG_W_INT(cmp->wind_gob), GOB_LOG_H_INT(cmp->wind_gob), cmp->wind_DC, 0, 0, SRCERASE);
736-
// BitBlt( cmp->back_DC, 0, 0, GOB_LOG_W_INT(cmp->wind_gob), GOB_LOG_H_INT(cmp->wind_gob), cmp->back_DC, 0, 0, SRCERASE);
737-
738723
FillRect(cmp->back_DC, &cmp->win_rect, cmp->brush_DC);
739-
740724
OS_Compose_Gob(cmp, wingob, wingob, FALSE);
741-
742-
//OS_Blit_Window(compositor);
743-
744725
BitBlt(
745726
cmp->wind_DC,
746727
0, 0,
@@ -749,7 +730,6 @@ void Paint_Window(HWND window);
749730
0, 0,
750731
SRCCOPY
751732
);
752-
753733
EndPaint(window, (LPPAINTSTRUCT) &ps);
754734
}
755735
}

0 commit comments

Comments
 (0)