fix chils windows in dress designer

This commit is contained in:
FunkyFr3sh 2024-06-01 02:20:21 +02:00
parent 2301ba971b
commit c66b972f68
2 changed files with 12 additions and 2 deletions

View file

@ -93,7 +93,7 @@ DWORD WINAPI gdi_render_main(void)
memcpy(&g_ddraw.primary->bmi->bmiColors[0], g_ddraw.primary->palette->data_rgb, 256 * sizeof(int));
}
if (InterlockedExchange(&g_ddraw.render.clear_screen, FALSE))
if (InterlockedExchange(&g_ddraw.render.clear_screen, FALSE) || g_ddraw.child_window_exists)
{
RECT rc = { 0, 0, g_ddraw.render.width, g_ddraw.render.height };
FillRect(g_ddraw.render.hdc, &rc, (HBRUSH)GetStockObject(BLACK_BRUSH));