зеркало из https://github.com/mozilla/gecko-dev.git
r=jkobal, a=blizzard Using wrong value for nsLookAndFeel, and wrong font checks
This commit is contained in:
Родитель
9f981fd116
Коммит
5fa28a0ed0
|
@ -730,10 +730,10 @@ HDC ps = NULL;
|
|||
HDC hdc = GpiQueryDevice( hps);
|
||||
long res[ 2];
|
||||
DevQueryCaps( hdc, CAPS_HORIZONTAL_FONT_RES, 2, res);
|
||||
pMetrics = getMetrics( lFonts, szFamily, hps);
|
||||
pMetrics = getMetrics( lFonts, fh->fattrs.szFacename, hps);
|
||||
|
||||
for( i = 0; i < lFonts; i++)
|
||||
if( !stricmp( szFamily, pMetrics[ i].szFamilyname) &&
|
||||
if( !stricmp( fh->fattrs.szFacename, pMetrics[ i].szFacename) &&
|
||||
pMetrics[ i].sNominalPointSize / 10 == points &&
|
||||
pMetrics[ i].sXDeviceRes == res[0] &&
|
||||
pMetrics[ i].sYDeviceRes == res[1]) break;
|
||||
|
|
|
@ -140,7 +140,7 @@ NS_IMETHODIMP nsLookAndFeel::GetColor(const nsColorID aID, nscolor &aColor)
|
|||
idx = SYSCLR_INACTIVETITLE;
|
||||
break;
|
||||
case eColor_inactivecaptiontext:
|
||||
idx = SYSCLR_INACTIVETITLE;
|
||||
idx = SYSCLR_INACTIVETITLETEXT;
|
||||
break;
|
||||
case eColor_infobackground:
|
||||
aColor = NS_RGB( 255, 255, 228);
|
||||
|
|
Загрузка…
Ссылка в новой задаче