1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed Window::invalidatedRegion reset to null instead of empty

This commit is contained in:
narzoul 2022-01-29 18:05:35 +01:00
parent 7a84efc1da
commit 177b81921a
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ namespace Gdi
}
else
{
g_region = Region();
g_region.clear();
EnumDisplayMonitors(nullptr, nullptr, addMonitorRectToRegion, reinterpret_cast<LPARAM>(&g_region));
GetRgnBox(g_region, &g_bounds);
}

View File

@ -440,7 +440,7 @@ namespace Gdi
{
RedrawWindow(hwnd, nullptr, it->second.invalidatedRegion,
RDW_INVALIDATE | RDW_ERASE | RDW_FRAME | RDW_ALLCHILDREN);
it->second.invalidatedRegion = nullptr;
it->second.invalidatedRegion.clear();
}
}