mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[paint] Fill the whole miniature window by using stretchblt
svn path=/trunk/; revision=51614
This commit is contained in:
parent
acf317b8b8
commit
de2892249a
|
@ -447,11 +447,11 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
}
|
||||
else if (hwnd == hwndMiniature)
|
||||
{
|
||||
long mclient[4];
|
||||
RECT mclient;
|
||||
HDC hdc;
|
||||
GetClientRect(hwndMiniature, (LPRECT) &mclient);
|
||||
GetClientRect(hwndMiniature, &mclient);
|
||||
hdc = GetDC(hwndMiniature);
|
||||
BitBlt(hdc, 0, 0, imgXRes, imgYRes, hDrawingDC, 0, 0, SRCCOPY);
|
||||
StretchBlt(hdc, 0, 0, mclient.right, mclient.bottom, hDrawingDC, 0, 0, imgXRes, imgYRes, SRCCOPY);
|
||||
ReleaseDC(hwndMiniature, hdc);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue