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:
parent
7a84efc1da
commit
177b81921a
@ -264,7 +264,7 @@ namespace Gdi
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_region = Region();
|
g_region.clear();
|
||||||
EnumDisplayMonitors(nullptr, nullptr, addMonitorRectToRegion, reinterpret_cast<LPARAM>(&g_region));
|
EnumDisplayMonitors(nullptr, nullptr, addMonitorRectToRegion, reinterpret_cast<LPARAM>(&g_region));
|
||||||
GetRgnBox(g_region, &g_bounds);
|
GetRgnBox(g_region, &g_bounds);
|
||||||
}
|
}
|
||||||
|
@ -440,7 +440,7 @@ namespace Gdi
|
|||||||
{
|
{
|
||||||
RedrawWindow(hwnd, nullptr, it->second.invalidatedRegion,
|
RedrawWindow(hwnd, nullptr, it->second.invalidatedRegion,
|
||||||
RDW_INVALIDATE | RDW_ERASE | RDW_FRAME | RDW_ALLCHILDREN);
|
RDW_INVALIDATE | RDW_ERASE | RDW_FRAME | RDW_ALLCHILDREN);
|
||||||
it->second.invalidatedRegion = nullptr;
|
it->second.invalidatedRegion.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user