diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-01-29 07:01:01 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-01-29 07:01:01 +0000 |
commit | 20a7d7aa200c851d150ee1761111f9364784c4dd (patch) | |
tree | b37223cf36b88a66d27c1ae821773c03397177af /canvas | |
parent | 9523fc1e9aac1dfd5a3e2f7d9e40d45041ae9a3a (diff) |
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
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_cairo.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_cairo.cxx b/canvas/source/cairo/cairo_cairo.cxx index 98b7c6c3cc13..34b5e635b3ed 100644 --- a/canvas/source/cairo/cairo_cairo.cxx +++ b/canvas/source/cairo/cairo_cairo.cxx @@ -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) |