diff --git a/gfx/src/mac/nsDeviceContextMac.cpp b/gfx/src/mac/nsDeviceContextMac.cpp index f0430877328b..dd82dd44a549 100644 --- a/gfx/src/mac/nsDeviceContextMac.cpp +++ b/gfx/src/mac/nsDeviceContextMac.cpp @@ -1029,7 +1029,11 @@ PRUint32 nsDeviceContextMac::GetScreenResolution() if (NS_SUCCEEDED(prefs->GetIntPref("browser.display.screen_resolution", &intVal)) && intVal > 0) { mPixelsPerInch = intVal; } -#ifdef XP_MACOSX +#if 0 +// the code here will ignore the default setting of 96dpi and +// instead force approximately 84dpi. There's no real reason for this +// and we shipped Camino0.7 with 96dpi and got no complaints. As +// a result, I'm removing it, but leaving the code for posterity. else { short hppi, vppi; ::ScreenRes(&hppi, &vppi); diff --git a/gfx/src/mac/nsGfxUtils.h b/gfx/src/mac/nsGfxUtils.h index 9569d8b66e19..7016e21845b8 100644 --- a/gfx/src/mac/nsGfxUtils.h +++ b/gfx/src/mac/nsGfxUtils.h @@ -155,19 +155,9 @@ public: //------------------------------------------------------------------------ static void SetPortToKnownGoodPort() { -#ifndef MOZ_WIDGET_COCOA WindowPtr firstWindow = GetTheWindowList(); if (firstWindow) ::SetGWorld(::GetWindowPort(firstWindow), ::GetMainDevice()); -#else - static GrafPtr gGoodPort = nsnull; - if (!gGoodPort) { - Rect macRect; - ::SetRect(&macRect, 0, 0, 2, 2); - ::NewGWorld(&gGoodPort, 16, &macRect, nsnull, nsnull, 0); - } - ::SetGWorld(gGoodPort, nsnull); -#endif } };