Cleaned up code from tranparency in vcl. Trying setfillcolor from edit attrs
Change-Id: I263012332e43573f260ac8c54612576eb21a11a1 (cherry picked from commit 02385eb4d8de3c5a57511d8bae3c42a523470838)
This commit is contained in:
committed by
Fridrich Štrba
parent
be34ea6f62
commit
7b59e44925
@@ -131,6 +131,11 @@ void EditCharAttribUnderline::SetFont( SvxFont& rFont, OutputDevice* pOutDev )
|
|||||||
rFont.SetUnderline( (FontUnderline)((const SvxUnderlineItem*)GetItem())->GetValue() );
|
rFont.SetUnderline( (FontUnderline)((const SvxUnderlineItem*)GetItem())->GetValue() );
|
||||||
if ( pOutDev )
|
if ( pOutDev )
|
||||||
pOutDev->SetTextLineColor( ((const SvxUnderlineItem*)GetItem())->GetColor() );
|
pOutDev->SetTextLineColor( ((const SvxUnderlineItem*)GetItem())->GetColor() );
|
||||||
|
|
||||||
|
// FIXME(matteocam)
|
||||||
|
Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF); // blue-ish
|
||||||
|
if ( pOutDev )
|
||||||
|
pOutDev->SetTextFillColor(aColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -149,14 +149,7 @@ 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 ) );
|
|
||||||
Polygon aPoly( aRect );
|
|
||||||
PolyPolygon aPolyPoly(aPoly);
|
|
||||||
Color aColor = RGB_COLORDATA(0x66,0x66, 0xFF);
|
|
||||||
SetTextFillColor(aColor);
|
|
||||||
DrawTransparent(aPolyPoly, 70);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user