Kaydet (Commit) ebc7be61 authored tarafından matteocam's avatar matteocam

SetTextFillColor immediately before DrawTransparent. DrawTextRect commented

Change-Id: Id283624484dfcda91546fd4965bc0b6b92614f55
üst 2f866000
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment