modified for new DrawString()/GetWidth() APIs.

git-svn-id: svn://10.0.0.236/trunk@18902 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
michaelp%netscape.com
1999-01-28 05:03:58 +00:00
parent 8767c19e77
commit 2b18562cef
18 changed files with 51 additions and 53 deletions

View File

@@ -639,7 +639,7 @@ nsTextControlFrame::PaintTextControl(nsIPresContext& aPresContext,
text.Append("*");
}
}
aRenderingContext.DrawString(text, x, y, 0);
aRenderingContext.DrawString(text, x, y);
} else {
float sbWidth;
float sbHeight;
@@ -664,11 +664,11 @@ nsTextControlFrame::PaintTextControl(nsIPresContext& aPresContext,
nsString substr;
if (-1 == pos) {
text.Right(substr, text.Length()-oldPos);
aRenderingContext.DrawString(substr, x, y, 0);
aRenderingContext.DrawString(substr, x, y);
break;
}
text.Left(substr, pos);
aRenderingContext.DrawString(substr, x, y, 0);
aRenderingContext.DrawString(substr, x, y);
y += textHeight;
pos++;
oldPos = pos;