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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 842
Date       : Wed Apr 19 19:30:35 BST 2006

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

Fixed gallery scrolling (osrndrgn.cpp needs to sanitize wxPaintDC DPIs as well as wxScreenDC)


Diff:
Index: Trunk/XaraLX/wxOil/osrndrgn.cpp
===================================================================
--- Trunk/XaraLX/wxOil/osrndrgn.cpp	(revision 841)
+++ Trunk/XaraLX/wxOil/osrndrgn.cpp	(revision 842)
@@ -7271,8 +7271,8 @@
 	wxSize PPI(96,96);
 #endif
 
-	// If it's not a Screen DC we MIGHT just believe it!	
-	if (!DC.IsKindOf(CLASSINFO(wxScreenDC)))
+	// If it's not a Screen DC or a PaintDC we MIGHT just believe it!	
+	if (! ( DC.IsKindOf(CLASSINFO(wxScreenDC)) || DC.IsKindOf(CLASSINFO(wxPaintDC)) ))
 		PPI=DC.GetPPI();
 
 	return PPI;


Xara