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:
parent
3c65e04df8
commit
3e54e2709e
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user