summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2015-01-17 20:46:55 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-01-19 15:04:22 +0000
commit568b40d24e0017b2d2042c8ba956c498f6d16247 (patch)
tree20e6ee1a3797f746be5e017b8e6adf4158d92d8f /vcl
parent4cff453efd33e5b94d7f9e54d48aa30bd550da76 (diff)
use supersampling in Impress if fast opengl scaling is available
So far it's been always disabled, with the exception of the slide preview extension. Change-Id: Iaee6fe2d5267c9dfdc31cbf4fb90a9ac0e08e781 Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bitmap3.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 38816e480b37..211516045adb 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -24,6 +24,7 @@
#include <vcl/bitmapex.hxx>
#include <vcl/bitmap.hxx>
#include <vcl/bitmapscalesuper.hxx>
+#include <vcl/opengl/OpenGLHelper.hxx>
#include <boost/scoped_array.hpp>
@@ -993,6 +994,11 @@ bool Bitmap::Scale( const Size& rNewSize, sal_uInt32 nScaleFlag )
return bRet;
}
+bool Bitmap::HasFastScale()
+{
+ return OpenGLHelper::isVCLOpenGLEnabled();
+}
+
void Bitmap::AdaptBitCount(Bitmap& rNew) const
{
ImplAdaptBitCount(rNew);