Kaydet (Commit) 1441ae75 authored tarafından matteocam's avatar matteocam

Debugging output in OutputDevice::SetTextFillColor

Change-Id: I78a75a94e4012eded1a4a5b4c36d8b399a4dda6c
üst 4b2d62f0
...@@ -741,8 +741,15 @@ void OutputDevice::SetTextFillColor() ...@@ -741,8 +741,15 @@ void OutputDevice::SetTextFillColor()
if ( mpMetaFile ) if ( mpMetaFile )
mpMetaFile->AddAction( new MetaTextFillColorAction( Color(), false ) ); mpMetaFile->AddAction( new MetaTextFillColorAction( Color(), false ) );
if ( maFont.GetColor() != Color( COL_TRANSPARENT ) ) if ( maFont.GetColor() != Color( COL_TRANSPARENT ) ) {
// FIXME(matteocam)
Color aColor = maFont.GetColor();
if (aColor.GetRed() == 0x66) {
fprintf(stderr, "OutputDevice::SetTextFillColor() changing blue to transparent\n ");
}
// end modified code
maFont.SetFillColor( Color( COL_TRANSPARENT ) ); maFont.SetFillColor( Color( COL_TRANSPARENT ) );
}
if ( !maFont.IsTransparent() ) if ( !maFont.IsTransparent() )
maFont.SetTransparent( true ); maFont.SetTransparent( true );
...@@ -756,6 +763,14 @@ void OutputDevice::SetTextFillColor( const Color& rColor ) ...@@ -756,6 +763,14 @@ void OutputDevice::SetTextFillColor( const Color& rColor )
Color aColor( rColor ); Color aColor( rColor );
bool bTransFill = ImplIsColorTransparent( aColor ); bool bTransFill = ImplIsColorTransparent( aColor );
// FIXME(matteocam)
if ( rColor.GetRed() == 0x66 ) { // component of the blue I use
fprintf(stderr, "OutputDevice::SetTextFillColor(Color &): called with (%d, %d, %d)\n",
rColor.GetRed(), rColor.GetBlue(), rColor.GetGreen());
}
// end modified code
if ( !bTransFill ) if ( !bTransFill )
{ {
if ( mnDrawMode & ( DRAWMODE_BLACKFILL | DRAWMODE_WHITEFILL | if ( mnDrawMode & ( DRAWMODE_BLACKFILL | DRAWMODE_WHITEFILL |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment