diff --git a/gfx/public/nsFont.h b/gfx/public/nsFont.h index c50356e4373..95ef3f98fb0 100644 --- a/gfx/public/nsFont.h +++ b/gfx/public/nsFont.h @@ -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, diff --git a/gfx/src/thebes/nsThebesDeviceContext.cpp b/gfx/src/thebes/nsThebesDeviceContext.cpp index eab741d3c82..aa5a1a76fa3 100644 --- a/gfx/src/thebes/nsThebesDeviceContext.cpp +++ b/gfx/src/thebes/nsThebesDeviceContext.cpp @@ -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 primaryScreen; - if (mDepth == 0) { - mScreenManager->GetPrimaryScreen(getter_AddRefs(primaryScreen)); - primaryScreen->GetColorDepth(reinterpret_cast(&mDepth)); - } - aDepth = mDepth; return NS_OK; }