gtk3: fix cairo canvas crash for non X (or svp) backend

This commit is contained in:
Michael Meeks
2011-10-20 21:49:40 +01:00
parent 6328bfd857
commit a07e8231a5

View File

@@ -55,6 +55,9 @@ namespace cairo
return false;
Display* pDisplay = (Display*)pOutDev->GetSystemGfxData().pDisplay;
if( !pDisplay )
return false;
int nDummy;
return XQueryExtension( pDisplay, "RENDER", &nDummy, &nDummy, &nDummy );
}