From bd42e9afa0d888fdd3609c08c4e20c54724cc093 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 16 Jun 2011 17:14:00 +0100 Subject: gtk3: switch to basebmp rendering during 'draw' --- vcl/unx/gtk/app/gtkinst.cxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'vcl/unx/gtk/app') 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 #include #include +#include +#include #include @@ -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: */ -- cgit