replace call to nsIRenderingContext::RetrieveCurrentNativeGraphicData with nsIRenderingContext::GetNativeGraphicData

This commit is contained in:
pavlov%pavlov.net 2005-08-23 02:59:34 +00:00
parent bfdd80a04c
commit 82ec4db5bd

View File

@ -137,7 +137,7 @@ nsSVGGDIPlusCanvas::Init(nsIRenderingContext* ctx,
HDC hdc;
// this ctx better be what we think it is...
mMozContext->RetrieveCurrentNativeGraphicData((PRUint32 *)(&hdc));
hdc = (HDC)(PRUint32 *)mMozContext->GetNativeGraphicData(nsIRenderingContext::NATIVE_WINDOWS_DC);
mGraphics = new Graphics(hdc);
if (!mGraphics) return NS_ERROR_FAILURE;