Kaydet (Commit) a07e8231 authored tarafından Michael Meeks's avatar Michael Meeks

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

üst 6328bfd8
...@@ -55,6 +55,9 @@ namespace cairo ...@@ -55,6 +55,9 @@ namespace cairo
return false; return false;
Display* pDisplay = (Display*)pOutDev->GetSystemGfxData().pDisplay; Display* pDisplay = (Display*)pOutDev->GetSystemGfxData().pDisplay;
if( !pDisplay )
return false;
int nDummy; int nDummy;
return XQueryExtension( pDisplay, "RENDER", &nDummy, &nDummy, &nDummy ); return XQueryExtension( pDisplay, "RENDER", &nDummy, &nDummy, &nDummy );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment