From a3afd945fb23fa7d55f8ce0779eadbfe756aae59 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Tue, 11 May 1999 21:41:03 +0000 Subject: [PATCH] ask for the grafPort, not the window, since they are different in Carbon. git-svn-id: svn://10.0.0.236/trunk@31147 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/mac/nsDrawingSurfaceMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/gfx/src/mac/nsDrawingSurfaceMac.cpp b/mozilla/gfx/src/mac/nsDrawingSurfaceMac.cpp index 3229c914e91..ca6403777e4 100644 --- a/mozilla/gfx/src/mac/nsDrawingSurfaceMac.cpp +++ b/mozilla/gfx/src/mac/nsDrawingSurfaceMac.cpp @@ -202,7 +202,7 @@ NS_IMETHODIMP nsDrawingSurfaceMac :: Init(GrafPtr aPort) NS_IMETHODIMP nsDrawingSurfaceMac :: Init(nsIWidget *aTheWidget) { // get our native graphics port from the widget - mPort = static_cast(aTheWidget->GetNativeData(NS_NATIVE_DISPLAY)); + mPort = reinterpret_cast(aTheWidget->GetNativeData(NS_NATIVE_GRAPHIC)); mGS->Init(aTheWidget); return NS_OK; }