summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-07-12 19:04:21 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-07-13 17:23:07 +0000
commit56ed1221d4d578260d9e20715d073b70a099efa4 (patch)
treeabdee903181ea8efd1e77750e6e4f0853073afe0 /include
parent820fe067c0ede36f357fb214d0298e3caaff512f (diff)
fdo#66745: drawinglayer: properly restore anti-aliasing mode
VclPixelProcessor2D: the constructor changes the anti-aliasing mode of the given output device, and the destructor restores a hard-coded mode instead of what was there before. Due to this commit 5913506b2193e93ca2767ab7365ab2e76ed7848f turned off anti-aliasing for FontWork objects simply by creating a temporary VclPixelProcessor2D. Change-Id: I7f7fcbf86b0dd425f599cd8e62fce3c69a2744bb (cherry picked from commit 420aa16af0bbab4bdef80ceeb8d44cabe65840e0) Reviewed-on: https://gerrit.libreoffice.org/4872 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/drawinglayer/processor2d/vclpixelprocessor2d.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drawinglayer/processor2d/vclpixelprocessor2d.hxx b/include/drawinglayer/processor2d/vclpixelprocessor2d.hxx
index c3003f096467..f280da72ccdc 100644
--- a/include/drawinglayer/processor2d/vclpixelprocessor2d.hxx
+++ b/include/drawinglayer/processor2d/vclpixelprocessor2d.hxx
@@ -25,6 +25,8 @@
#include <drawinglayer/processor2d/vclprocessor2d.hxx>
#include <vcl/outdev.hxx>
+#include <boost/scoped_ptr.hpp>
+
//////////////////////////////////////////////////////////////////////////////
namespace drawinglayer
@@ -40,6 +42,9 @@ namespace drawinglayer
class DRAWINGLAYER_DLLPUBLIC VclPixelProcessor2D : public VclProcessor2D
{
private:
+ struct Impl;
+ boost::scoped_ptr<Impl> m_pImpl;
+
protected:
/* the local processor for BasePrinitive2D-Implementation based primitives,
called from the common process()-implementation