gtk3: fix cairo canvas crash for non X (or svp) backend
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user