SetTextFillColor immediately before DrawTransparent. DrawTextRect commented
Change-Id: Id283624484dfcda91546fd4965bc0b6b92614f55 (cherry picked from commit ebc7be61df384120f1d0420d3e4dc5e3ac5599f4)
This commit is contained in:
committed by
Fridrich Štrba
parent
44f6d7a2c5
commit
dbff42a078
@@ -149,14 +149,14 @@ void OutputDevice::ImplDrawTextRect( long nBaseX, long nBaseY,
|
|||||||
|
|
||||||
nX += nBaseX;
|
nX += nBaseX;
|
||||||
nY += nBaseY;
|
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 ) );
|
Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) );
|
||||||
Polygon aPoly( aRect );
|
Polygon aPoly( aRect );
|
||||||
PolyPolygon aPolyPoly(aPoly);
|
PolyPolygon aPolyPoly(aPoly);
|
||||||
DrawTransparent(aPolyPoly, 50);
|
Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF);
|
||||||
// Code above is wrong: it just messes up.
|
SetTextFillColor(aColor);
|
||||||
|
DrawTransparent(aPolyPoly, 70);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -486,6 +486,7 @@ void OutputDevice::ImplDrawText( SalLayout& rSalLayout )
|
|||||||
and the set it as the new filling color
|
and the set it as the new filling color
|
||||||
*/
|
*/
|
||||||
if (mbTextBackground) {
|
if (mbTextBackground) {
|
||||||
|
// FIXME(matteocam)
|
||||||
// set right background // (XXX: now getting fixed color)
|
// set right background // (XXX: now getting fixed color)
|
||||||
Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
|
Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
|
||||||
// SetBackground does not work
|
// SetBackground does not work
|
||||||
|
Reference in New Issue
Block a user