The URL Location text field font size was wrong. It forgot to multiply by

the "device to app" factor. Corrected.
This commit is contained in:
erik%netscape.com 1999-03-31 22:51:25 +00:00
parent 5bf9acfc72
commit be86244099

View File

@ -1269,9 +1269,11 @@ nsBrowserWindow::CreateToolBar(PRInt32 aWidth)
nsIDeviceContext* dc = mWindow->GetDeviceContext();
float t2d;
dc->GetTwipsToDevUnits(t2d);
float d2a;
dc->GetDevUnitsToAppUnits(d2a);
nsFont font(TOOL_BAR_FONT, NS_FONT_STYLE_NORMAL, NS_FONT_VARIANT_NORMAL,
NS_FONT_WEIGHT_NORMAL, 0,
nscoord(t2d * NSIntPointsToTwips(TOOL_BAR_FONT_SIZE)));
nscoord(NSIntPointsToTwips(TOOL_BAR_FONT_SIZE) * t2d * d2a));
NS_RELEASE(dc);
// Create and place back button