зеркало из https://github.com/mozilla/pjs.git
backing out changes that weren't supposed to be part of my previous backout...
This commit is contained in:
Родитель
b2bdff68bb
Коммит
2426e5ea45
|
@ -97,9 +97,6 @@ struct NS_GFX nsFont {
|
|||
// needs to be done.
|
||||
float sizeAdjust;
|
||||
|
||||
// Stretch of the font 1-9
|
||||
PRUint16 stretch;
|
||||
|
||||
// Initialize the font struct with an ASCII name
|
||||
nsFont(const char* aName, PRUint8 aStyle, PRUint8 aVariant,
|
||||
PRUint16 aWeight, PRUint8 aDecoration, nscoord aSize,
|
||||
|
|
|
@ -272,7 +272,10 @@ nsThebesDeviceContext::Init(nsNativeWidget aWidget)
|
|||
|
||||
#endif
|
||||
|
||||
mScreenManager = do_GetService("@mozilla.org/gfx/screenmanager;1");
|
||||
|
||||
mDepth = 24;
|
||||
|
||||
mScreenManager = do_GetService("@mozilla.org/gfx/screenmanager;1");
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -418,12 +421,6 @@ nsThebesDeviceContext::CheckFontExistence(const nsString& aFaceName)
|
|||
NS_IMETHODIMP
|
||||
nsThebesDeviceContext::GetDepth(PRUint32& aDepth)
|
||||
{
|
||||
nsCOMPtr<nsIScreen> primaryScreen;
|
||||
if (mDepth == 0) {
|
||||
mScreenManager->GetPrimaryScreen(getter_AddRefs(primaryScreen));
|
||||
primaryScreen->GetColorDepth(reinterpret_cast<PRInt32 *>(&mDepth));
|
||||
}
|
||||
|
||||
aDepth = mDepth;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче