From: Colin Finck Date: Thu, 15 May 2008 14:06:19 +0000 (+0000) Subject: Carlo Bramini (carlo DOT bramix AT libero DOT it): X-Git-Tag: ReactOS-0.3.5~548 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=c091afbac7008c04e560fb8d28285ce679a0bdfd Carlo Bramini (carlo DOT bramix AT libero DOT it): - Simplify blitting the screen bitmap to the main window. This also hides a ROS GDI bug, for which I'm going to open a new bug report. See issue #3241 for more details. svn path=/trunk/; revision=33528 --- diff --git a/rosapps/magnify/magnifier.c b/rosapps/magnify/magnifier.c index 7f0600aaca3..b8900ed6d39 100644 --- a/rosapps/magnify/magnifier.c +++ b/rosapps/magnify/magnifier.c @@ -257,8 +257,9 @@ void Draw(HDC aDc) rop = NOTSRCCOPY; } + /* Blast the stretched image from memory DC to window DC.*/ StretchBlt( - HdcStrech, + aDc, 0, 0, AppWidth, @@ -270,18 +271,6 @@ void Draw(HDC aDc) blitAreaHeight, rop); - /* Blast the image from memory DC to client DC.*/ - BitBlt ( - aDc, - 0 , - 0 , - AppWidth , - AppHeight , - HdcStrech , - 0 , - 0 , - SRCCOPY); - /* Cleanup.*/ SelectObject (HdcStrech, hOld); DeleteObject (HbmpStrech);