diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-06-16 17:14:00 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-25 13:41:40 +0100 |
commit | bd42e9afa0d888fdd3609c08c4e20c54724cc093 (patch) | |
tree | e7c9b5af56a935b959561fdd539e0192533e29b2 /vcl/unx/gtk/app | |
parent | 40360820036a5d6a3359d1b5ec748a47a7edd85f (diff) |
gtk3: switch to basebmp rendering during 'draw'
Diffstat (limited to 'vcl/unx/gtk/app')
-rw-r--r-- | vcl/unx/gtk/app/gtkinst.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vcl/unx/gtk/app/gtkinst.cxx b/vcl/unx/gtk/app/gtkinst.cxx index 16c1a78ef803..103752ccbc91 100644 --- a/vcl/unx/gtk/app/gtkinst.cxx +++ b/vcl/unx/gtk/app/gtkinst.cxx @@ -36,6 +36,8 @@ #include <unx/gtk/gtkframe.hxx> #include <unx/gtk/gtkobject.hxx> #include <unx/gtk/atkbridge.hxx> +#include <unx/headless/svpvd.hxx> +#include <unx/headless/svpbmp.hxx> #include <rtl/strbuf.hxx> @@ -411,4 +413,27 @@ void GtkYieldMutex::Ungrab( int nGrabs ) #endif } +SalVirtualDevice* GtkInstance::CreateVirtualDevice( SalGraphics *pG, + long nDX, long nDY, + sal_uInt16 nBitCount, + const SystemGraphicsData *pGd ) +{ +#if GTK_CHECK_VERSION(3,0,0) && !defined GTK3_X11_RENDER + SvpSalVirtualDevice* pNew = new SvpSalVirtualDevice( nBitCount ); + pNew->SetSize( nDX, nDY ); + return pNew; +#else + return X11SalInstance::CreateVirtualDevice( pG, nDX, nDY, nBitCount, pGd ); +#endif +} + +SalBitmap* GtkInstance::CreateSalBitmap() +{ +#if GTK_CHECK_VERSION(3,0,0) && !defined GTK3_X11_RENDER + return new SvpSalBitmap(); +#else + return X11SalInstance::CreateSalBitmap(); +#endif +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |