rounding support

This commit is contained in:
peterl@netscape.com
1998-07-31 23:34:45 +00:00
parent 599398bc3a
commit dda833cded
82 changed files with 442 additions and 423 deletions
@@ -1158,7 +1158,7 @@ HTMLContentSink::ScrollToRef()
#if 0
nsIPresContext* cx = shell->GetPresContext();
float t2p = cx->GetTwipsToPixels();
printf("x=%d y=%d\n", nscoord(x * t2p), nscoord(y * t2p));
printf("x=%d y=%d\n", NSTwipsToIntPixels(x, t2p), NSTwipsToIntPixels(y, t2p));
NS_RELEASE(cx);
#endif
sview->SetScrollPreference(mOriginalScrollPreference);