summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorth <th@openoffice.org>2001-04-24 14:13:16 +0000
committerth <th@openoffice.org>2001-04-24 14:13:16 +0000
commit43c4bcce4e609594544f5f6db0c966bdaf829437 (patch)
treeb2859ff1fd38814a9a5e04c8a262f17a9520625e /vcl
parente912739223cb10a1b188ff58824a09acd25246fb (diff)
#i759# - Better Shadow Color
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev3.cxx10
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 );