diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2013-05-04 02:26:49 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-05-06 19:16:23 +0200 |
commit | d08280cd683b390b19c80b2e56cc6680dbc1f052 (patch) | |
tree | 6498d9bfff6a0cb4be76a816d048e8031c91ce24 /vcl | |
parent | a89aa68483fafb82f1718fef93788523ddf0070d (diff) |
Debug rendering for PostScript printer backend.
Change-Id: I4581026627fe509895d471f5c28089aaaee85f58
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/print2.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index 0614a1807318..2fb7a28ef9b6 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; } |