mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Order rectangle points to avoid CreateCompatibleBitmap failure because of negative size values
svn path=/trunk/; revision=40569
This commit is contained in:
parent
6fe4f11391
commit
b48f3e2f98
1 changed files with 1 additions and 0 deletions
|
@ -1630,6 +1630,7 @@ BOOL UserDrawCaption(
|
||||||
if (pWnd)
|
if (pWnd)
|
||||||
Wnd = pWnd->Wnd;
|
Wnd = pWnd->Wnd;
|
||||||
|
|
||||||
|
RECTL_vMakeWellOrdered(lpRc);
|
||||||
hMemBmp = NtGdiCreateCompatibleBitmap(hDc,
|
hMemBmp = NtGdiCreateCompatibleBitmap(hDc,
|
||||||
lpRc->right - lpRc->left,
|
lpRc->right - lpRc->left,
|
||||||
lpRc->bottom - lpRc->top);
|
lpRc->bottom - lpRc->top);
|
||||||
|
|
Loading…
Reference in a new issue