added gamma correction methods to the device context. the windows rendering context now

gamma corrects colors. fixed tablecellframe to call the right nsStyleCoord constructor.
This commit is contained in:
michaelp
1998-05-13 18:15:06 +00:00
parent 84ac9c7e1f
commit 7f81b7f5b7
9 changed files with 74 additions and 5 deletions

View File

@@ -440,8 +440,8 @@ void nsTableCellFrame::MapBorderMarginPadding(nsIPresContext* aPresContext)
{
PRInt32 value;
nsStyleCoord padding(0, eStyleUnit_Coord);
nsStyleCoord spacing(0, eStyleUnit_Coord);
nsStyleCoord padding(0);
nsStyleCoord spacing(0);
if (padding_result == eContentAttr_HasValue && ConvertToIntValue(padding_value,0,value))
padding.SetCoordValue((nscoord)(p2t*(float)value));