mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
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:
parent
5bf9acfc72
commit
be86244099
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user