[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 1699
Date       : Tue Aug 15 12:43:54 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/grndrgn.cpp

Fix for BZ1408 ported from Xtreme


Diff:
Index: Trunk/XaraLX/wxOil/grndrgn.cpp
===================================================================
--- Trunk/XaraLX/wxOil/grndrgn.cpp	(revision 1698)
+++ Trunk/XaraLX/wxOil/grndrgn.cpp	(revision 1699)
@@ -7665,6 +7665,13 @@
 	*plpBitmapInfo = bmInfo;
 	*plpBits = bmBits;
 
+	// This code gets the pixelised version of the capture rect
+	// and returns it to the caller to ensure ULTIMATE accuracy when blitting the bitmap
+	// using RenderBits
+	DocRect rectPix = OSRenderRegion::WinRectToDoc(RenderMatrix, Rect, PixelsPerInch);
+	ENSURE(rectPix.IsValid(), "Pixelised rect is not valid in GrabBitmap");
+	*rectGrab = rectPix;
+
 	return TRUE;
 }
 


Xara