[paint] Fill the whole miniature window by using stretchblt

svn path=/trunk/; revision=51614
This commit is contained in:
Gregor Schneider 2011-05-06 22:02:29 +00:00
parent acf317b8b8
commit de2892249a

View file

@ -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;