diff options
author | th <th@openoffice.org> | 2001-04-24 14:13:16 +0000 |
---|---|---|
committer | th <th@openoffice.org> | 2001-04-24 14:13:16 +0000 |
commit | 43c4bcce4e609594544f5f6db0c966bdaf829437 (patch) | |
tree | b2859ff1fd38814a9a5e04c8a262f17a9520625e /vcl | |
parent | e912739223cb10a1b188ff58824a09acd25246fb (diff) |
#i759# - Better Shadow Color
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/outdev3.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index fa1a250e7494..71e37ef32f90 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: outdev3.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.33 $ * - * last change: $Author: th $ $Date: 2001-04-12 10:14:10 $ + * last change: $Author: th $ $Date: 2001-04-24 15:13:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -4592,10 +4592,12 @@ void OutputDevice::ImplDrawSpecialText( long nX, long nY, if ( maFont.IsOutline() ) nOff++; SetTextLineColor(); - if ( GetTextColor().GetColor() == COL_BLACK ) + if ( (GetTextColor().GetColor() == COL_BLACK) || + (GetTextColor().GetColor() == COL_WHITE) || // We assume a dark background in this case + (GetTextColor().GetLuminance() < 127) ) SetTextColor( Color( COL_LIGHTGRAY ) ); else - SetTextColor( Color( COL_BLACK ) ); + SetTextColor( Color( COL_GRAY ) ); ImplInitTextColor(); ImplDrawTextDirect( nX+nOff, nY+nOff, pStr, nLen, pDXAry, mbTextLines ); SetTextColor( aOldColor ); |