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

Cleaned up code from tranparency in vcl. Trying setfillcolor from edit attrs

Change-Id: I263012332e43573f260ac8c54612576eb21a11a1
üst 4445f361
......@@ -131,6 +131,11 @@ void EditCharAttribUnderline::SetFont( SvxFont& rFont, OutputDevice* pOutDev )
rFont.SetUnderline( (FontUnderline)((const SvxUnderlineItem*)GetItem())->GetValue() );
if ( pOutDev )
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;
nY += nBaseY;
//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);
mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code
}
......
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