[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-text-background-color' - vcl/source

matteocam matteo.campanelli at gmail.com
Tue May 27 09:05:03 PDT 2014


 vcl/source/outdev/text.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2f8660008ddd32c8f24825d5ba3e751bc65d6d3e
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Tue May 27 12:04:10 2014 -0400

    Transparency with DrawTransparent in addition to DrawRect
    
    Change-Id: I9e8221652b74a3004857ef4b12c6b45563a373b5

diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index ef7f7e6..effb27a 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.
+
 
 }
 


More information about the Libreoffice-commits mailing list