diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2015-01-17 20:46:55 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2015-01-19 12:17:52 +0100 |
commit | 0bdad2b3b6a2b4c252ff71c2b3995485fd34ed8d (patch) | |
tree | f5f8ace0b0d8d57a28b7faa766a1ece3089ed7c5 /vcl | |
parent | ab65925b40134ff7d8b88c61db5235549599385f (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
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 6 |
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); |