Bug 189353. Fix for mistake in previous patch. r=simontaylor2. BeOS-only

This commit is contained in:
sergei_d%fi.tartu.ee 2005-02-27 15:07:14 +00:00
Родитель 43c67b6a7b
Коммит d7f8691297
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -132,10 +132,8 @@ NS_IMETHODIMP nsDeviceContextBeOS::Init(nsNativeWidget aNativeWidget)
}
// Set OSVal to what the operating system thinks the logical resolution is.
PRInt32 OSVal = 72;
// BeOS lacks monitor info, so we use estimation
float fPrefVal = float(mWidthFloat)*72./800.;
prefVal = int(fPrefVal);
PRInt32 OSVal = int(mWidthFloat*72./800.);
if (prefVal > 0)
{
// If there's a valid pref value for the logical resolution,