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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user