remove assertion in nsRenderingContextGTK and added gdk_rgb_init() to

nsDeviceContextGTK
This commit is contained in:
pavlov%pavlov.net 1998-11-09 15:47:45 +00:00
parent 53129acd64
commit b2e38fec66
2 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,6 @@ NS_IMPL_RELEASE(nsDeviceContextGTK)
NS_IMETHODIMP nsDeviceContextGTK::Init(nsNativeWidget aNativeWidget)
{
NS_ASSERTION(!(aNativeWidget == nsnull), "attempt to init devicecontext with null widget");
for (PRInt32 cnt = 0; cnt < 256; cnt++)
mGammaTable[cnt] = cnt;

View File

@ -132,6 +132,8 @@ NS_IMETHODIMP nsRenderingContextGTK::Init(nsIDeviceContext* aContext,
mContext = aContext;
NS_IF_ADDREF(mContext);
::gdk_rgb_init();
mRenderingSurface = new nsDrawingSurfaceGTK();
mRenderingSurface->drawable = (GdkDrawable *)aWindow->GetNativeData(NS_NATIVE_WINDOW);