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; }