diff --git a/gfx/src/mac/nsDeviceContextMac.cpp b/gfx/src/mac/nsDeviceContextMac.cpp index 66bb6a25a41..8dc070e2cd0 100644 --- a/gfx/src/mac/nsDeviceContextMac.cpp +++ b/gfx/src/mac/nsDeviceContextMac.cpp @@ -86,7 +86,7 @@ double pix_inch; // cps - Unlocking GDeviceHandles is a no - no. See above. ::HSetState ((Handle)thegd,hState); - return NS_OK; + return DeviceContextImpl::Init(aNativeWidget); } diff --git a/widget/src/mac/nsDeviceContextMac.cpp b/widget/src/mac/nsDeviceContextMac.cpp index 66bb6a25a41..8dc070e2cd0 100644 --- a/widget/src/mac/nsDeviceContextMac.cpp +++ b/widget/src/mac/nsDeviceContextMac.cpp @@ -86,7 +86,7 @@ double pix_inch; // cps - Unlocking GDeviceHandles is a no - no. See above. ::HSetState ((Handle)thegd,hState); - return NS_OK; + return DeviceContextImpl::Init(aNativeWidget); }