Author: gschneider
Date: Fri May 6 22:02:29 2011
New Revision: 51614
URL:
http://svn.reactos.org/svn/reactos?rev=51614&view=rev
Log:
[paint] Fill the whole miniature window by using stretchblt
Modified:
trunk/reactos/base/applications/mspaint/winproc.c
Modified: trunk/reactos/base/applications/mspaint/winproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] Fri May 6 22:02:29
2011
@@ -447,11 +447,11 @@
}
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;