[ros-diffs] [cfinck] 33528: 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.

cfinck at svn.reactos.org cfinck at svn.reactos.org
Thu May 15 16:06:19 CEST 2008


Author: cfinck
Date: Thu May 15 09:06:19 2008
New Revision: 33528

URL: http://svn.reactos.org/svn/reactos?rev=33528&view=rev
Log:
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.

Modified:
    trunk/rosapps/magnify/magnifier.c

Modified: trunk/rosapps/magnify/magnifier.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/magnify/magnifier.c?rev=33528&r1=33527&r2=33528&view=diff
==============================================================================
--- trunk/rosapps/magnify/magnifier.c [iso-8859-1] (original)
+++ trunk/rosapps/magnify/magnifier.c [iso-8859-1] Thu May 15 09:06:19 2008
@@ -257,8 +257,9 @@
 		rop = NOTSRCCOPY;
 	}
 
+	/* Blast the stretched image from memory DC to window DC.*/
 	StretchBlt(
-		HdcStrech,
+		aDc,
 		0,
 		0,
 		AppWidth,
@@ -269,18 +270,6 @@
 		blitAreaWidth,
 		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);



More information about the Ros-diffs mailing list