remove assertion in nsRenderingContextGTK and added gdk_rgb_init() to

nsDeviceContextGTK


git-svn-id: svn://10.0.0.236/trunk@14280 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net 1998-11-09 15:47:45 +00:00
parent 3c65e04df8
commit 3e54e2709e
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);