mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
Fix redraw bug by correcting nonclient region calculation. (Window->UpdateRegion has no proper values)
TODO: calculate and/or update Window->UpdateRegion properly See issue #4181 for details. svn path=/trunk/; revision=42836
This commit is contained in:
parent
5ad980f439
commit
b728102816
1 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ IntGetNCUpdateRgn(PWINDOW_OBJECT Window, BOOL Validate)
|
||||||
if (Window->UpdateRegion != NULL &&
|
if (Window->UpdateRegion != NULL &&
|
||||||
Window->UpdateRegion != (HRGN)1)
|
Window->UpdateRegion != (HRGN)1)
|
||||||
{
|
{
|
||||||
hRgnNonClient = NtGdiCreateRectRgn(0, 0, 0, 0);
|
hRgnNonClient = IntCalcWindowRgn(Window, FALSE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If region creation fails it's safe to fallback to whole
|
* If region creation fails it's safe to fallback to whole
|
||||||
|
@ -186,7 +186,7 @@ IntGetNCUpdateRgn(PWINDOW_OBJECT Window, BOOL Validate)
|
||||||
return (HRGN)1;
|
return (HRGN)1;
|
||||||
}
|
}
|
||||||
|
|
||||||
RgnType = NtGdiCombineRgn(hRgnNonClient, Window->UpdateRegion,
|
RgnType = NtGdiCombineRgn(hRgnNonClient, hRgnNonClient,
|
||||||
hRgnWindow, RGN_DIFF);
|
hRgnWindow, RGN_DIFF);
|
||||||
if (RgnType == ERROR)
|
if (RgnType == ERROR)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue