Kaydet (Commit) 20a7d7aa authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS thbpp10 (1.5.40); FILE MERGED

2008/01/14 15:54:21 thb 1.5.40.1: #i84049# Checking for render existence - patch courtesy jnavrati
üst 9523fc1e
......@@ -4,9 +4,9 @@
*
* $RCSfile: cairo_cairo.cxx,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2007-07-17 14:19:36 $
* last change: $Author: vg $ $Date: 2008-01-29 08:01:01 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -47,6 +47,13 @@ namespace cairo
#include <cairo-xlib.h>
#include <cairo-xlib-xrender.h>
bool HasXRender( const void* pSysData )
{
Display *pDisplay = (Display*) cairoHelperGetDisplay( pSysData );
int nDummy;
return XQueryExtension( pDisplay, "RENDER", &nDummy, &nDummy, &nDummy );
}
/**
* Surface::Surface: Create Canvas surface with existing data
* @param pSysData Platform native system environment data (struct SystemEnvData in vcl/inc/sysdata.hxx)
......
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