summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authormatteocam <matteo.campanelli@gmail.com>2014-05-27 12:04:10 -0400
committerFridrich Štrba <fridrich.strba@bluewin.ch>2014-06-30 22:54:38 +0200
commit44f6d7a2c5cfdbbea390f433bb56b8be869ae1b0 (patch)
treea53931ce467cfabb74fb17487909dde27624170e /vcl
parent6b490f6be9cd87c813c97560f3ca6d0790c54c37 (diff)
Transparency with DrawTransparent in addition to DrawRect
Change-Id: I9e8221652b74a3004857ef4b12c6b45563a373b5 (cherry picked from commit 2f8660008ddd32c8f24825d5ba3e751bc65d6d3e)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/text.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 8da85a6a21d9..50958a7eb97e 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -149,11 +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.
+
}