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
This commit is contained in:
pinkerton%netscape.com
1999-05-11 21:41:03 +00:00
parent 6619489e1a
commit a3afd945fb

View File

@@ -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<GrafPtr>(aTheWidget->GetNativeData(NS_NATIVE_DISPLAY));
mPort = reinterpret_cast<GrafPtr>(aTheWidget->GetNativeData(NS_NATIVE_GRAPHIC));
mGS->Init(aTheWidget);
return NS_OK;
}