summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatteocam <matteo.campanelli@gmail.com>2014-05-27 16:05:44 -0400
committerFridrich Štrba <fridrich.strba@bluewin.ch>2014-06-30 22:54:38 +0200
commitdbff42a078fbf2119ab9d8aa232ed673d9a2d91d (patch)
tree2a7acd645ffa54d97b3fdb21e112a9b174d10f63
parent44f6d7a2c5cfdbbea390f433bb56b8be869ae1b0 (diff)
SetTextFillColor immediately before DrawTransparent. DrawTextRect commented
Change-Id: Id283624484dfcda91546fd4965bc0b6b92614f55 (cherry picked from commit ebc7be61df384120f1d0420d3e4dc5e3ac5599f4)
-rw-r--r--vcl/source/outdev/text.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 50958a7eb97e..2d50f4ddb303 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -149,14 +149,14 @@ void OutputDevice::ImplDrawTextRect( long nBaseX, long nBaseY,
nX += nBaseX;
nY += nBaseY;
- mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code
+ //mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code
Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) );
Polygon aPoly( aRect );
PolyPolygon aPolyPoly(aPoly);
- DrawTransparent(aPolyPoly, 50);
- // Code above is wrong: it just messes up.
-
+ Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF);
+ SetTextFillColor(aColor);
+ DrawTransparent(aPolyPoly, 70);
}
@@ -486,6 +486,7 @@ void OutputDevice::ImplDrawText( SalLayout& rSalLayout )
and the set it as the new filling color
*/
if (mbTextBackground) {
+ // FIXME(matteocam)
// set right background // (XXX: now getting fixed color)
Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
// SetBackground does not work