From 7b23729525af60c0eda8b87fa701ccb130689102 Mon Sep 17 00:00:00 2001 From: "jag%tty.nl" Date: Sun, 25 Jul 2004 08:21:05 +0000 Subject: [PATCH] It looks like this should fix the bustage. |surf| is ultimately a nsIDrawingSurface, and that's what Init is looking for (well, that, and nsIWidget, but I doubt it's that ;-) ) --- gfx/src/os2/nsDeviceContextOS2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/os2/nsDeviceContextOS2.cpp b/gfx/src/os2/nsDeviceContextOS2.cpp index 305674a40b4c..97152ab2050e 100644 --- a/gfx/src/os2/nsDeviceContextOS2.cpp +++ b/gfx/src/os2/nsDeviceContextOS2.cpp @@ -326,7 +326,7 @@ nsresult nsDeviceContextOS2::CreateRenderingContext( nsIRenderingContext *&aCont surf->Init( mPrintPS, mWidth, mHeight, 0); - nsresult rc = pContext->Init( this, (void*)((nsDrawingSurfaceOS2 *) surf)); + nsresult rc = pContext->Init(this, surf); if( NS_OK != rc) {