summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-25 06:12:50 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-25 06:12:50 +0000
commit5a9e2f1f61115e265eeb6c7c8b3522a4bf93f29b (patch)
treee8af4d480a00e02e2a383f263c86479d9bab34c3 /sdext
parenteb41a2b4b233ab223d2eba92c4d82e7cc4241043 (diff)
INTEGRATION: CWS impress148 (1.4.10); FILE MERGED
2008/07/16 12:47:57 af 1.4.10.1: #i91701# Use only 4 component colors.
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterClock.cxx22
1 files changed, 9 insertions, 13 deletions
diff --git a/sdext/source/presenter/PresenterClock.cxx b/sdext/source/presenter/PresenterClock.cxx
index 812c38be8b86..7f5de9fb4156 100644
--- a/sdext/source/presenter/PresenterClock.cxx
+++ b/sdext/source/presenter/PresenterClock.cxx
@@ -8,7 +8,7 @@
*
* $RCSfile: PresenterClock.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
@@ -299,10 +299,8 @@ PresenterClock::PresenterClock (
maViewState.AffineTransform = geometry::AffineMatrix2D(1,0,0, 0,1,0);
maRenderState.AffineTransform = geometry::AffineMatrix2D(1,0,0, 0,1,0);
- maRenderState.DeviceColor = Sequence<double>(3);
- maRenderState.DeviceColor[0] = 0;
- maRenderState.DeviceColor[1] = 0;
- maRenderState.DeviceColor[2] = 0;
+ maRenderState.DeviceColor = Sequence<double>(4);
+ PresenterCanvasHelper::SetDeviceColor(maRenderState, util::Color(0x00000000));
try
{
@@ -1341,17 +1339,15 @@ void DigitalDefaultPainter::Paint (
rendering::RenderState aRenderState(
geometry::AffineMatrix2D(1,0,0, 0,1,0),
NULL,
- Sequence<double>(3),
+ Sequence<double>(4),
rendering::CompositeOperation::SOURCE);
util::Color aFontColor (mpPresenterController->GetViewFontColor(msViewURL));
- aRenderState.DeviceColor[0] = ((aFontColor>>16) & 0x0ff) / 255.0;
- aRenderState.DeviceColor[1] = ((aFontColor>>8) & 0x0ff) / 255.0;
- aRenderState.DeviceColor[2] = ((aFontColor>>0) & 0x0ff) / 255.0;
- aRenderState.AffineTransform.m02 = (maWindowSize.Width - (aBox.X2-aBox.X1+1)) / 2
- - aBox.X1;
- aRenderState.AffineTransform.m12 = (maWindowSize.Height - (aBox.Y2-aBox.Y1+1)) / 2
- - aBox.Y1;
+ PresenterCanvasHelper::SetDeviceColor(aRenderState, aFontColor);
+ aRenderState.AffineTransform.m02
+ = (maWindowSize.Width - (aBox.X2-aBox.X1+1)) / 2 - aBox.X1;
+ aRenderState.AffineTransform.m12
+ = (maWindowSize.Height - (aBox.Y2-aBox.Y1+1)) / 2 - aBox.Y1;
rxCanvas->drawText(
aContext,
mxFont,