vcl/source/gdi/print2.cxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
New commits: commit d08280cd683b390b19c80b2e56cc6680dbc1f052 Author: Thorsten Behrens <tbehr...@suse.com> Date: Sat May 4 02:26:49 2013 +0200 Debug rendering for PostScript printer backend. Change-Id: I4581026627fe509895d471f5c28089aaaee85f58 diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index 0614a18..2fb7a28 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -641,7 +641,6 @@ static bool ImplIsActionHandlingTransparency( const MetaAction& rAct ) } } -// remove comment to enable highlighting of generated output bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, GDIMetaFile& rOutMtf, long nMaxBmpDPIX, long nMaxBmpDPIY, bool bReduceTransparency, bool bTransparencyAutoMode, @@ -1341,6 +1340,20 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, rOutMtf.SetPrefMapMode( rInMtf.GetPrefMapMode() ); rOutMtf.SetPrefSize( rInMtf.GetPrefSize() ); + +#if OSL_DEBUG_LEVEL > 1 + // iterate over all aCCList members and generate rectangles for the bounding boxes + rOutMtf.AddAction( new MetaFillColorAction( COL_WHITE, false ) ); + for( aCurr = aCCList.begin(); aCurr != aLast; ++aCurr ) + { + if( aCurr->bIsSpecial ) + rOutMtf.AddAction( new MetaLineColorAction( COL_RED, true) ); + else + rOutMtf.AddAction( new MetaLineColorAction( COL_BLUE, true) ); + + rOutMtf.AddAction( new MetaRectAction( aMapModeVDev.PixelToLogic( aCurr->aBounds ) ) ); + } +#endif } return bTransparent; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits