diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-18 14:41:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-20 09:52:08 +0200 |
commit | 953f327818f565969b8de5d9b956bd6b9a7c64b2 (patch) | |
tree | caf761676202ca7bcba8a57a3e34e197ae0831ee /include | |
parent | 25a47c5cd54c73e754de988bde8ec8a202d27717 (diff) |
convert COPYAREA constant to bool flag
since there is only value in this flags thing
Change-Id: I86d7a3a358c467a9748b00e1ba8c09106f282947
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 7 | ||||
-rw-r--r-- | include/vcl/print.hxx | 2 | ||||
-rw-r--r-- | include/vcl/window.hxx | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 728ce4278ee5..ee1752d06979 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -186,9 +186,6 @@ namespace o3tl template<> struct typed_flags<DrawTextFlags> : is_typed_flags<DrawTextFlags, 0xffff> {}; } -// Flags for CopyArea() -#define COPYAREA_WINDOWINVALIDATE ((sal_uInt16)0x0001) - // Flags for DrawImage() #define IMAGE_DRAW_DISABLE ((sal_uInt16)0x0001) #define IMAGE_DRAW_HIGHLIGHT ((sal_uInt16)0x0002) @@ -555,7 +552,7 @@ public: virtual void CopyArea( const Point& rDestPt, const Point& rSrcPt, const Size& rSrcSize, - sal_uInt16 nFlags = 0 ); + bool bWindowInvalidate = false ); // Call before and after a paint operation to reduce flushing void BeginPaint(); @@ -563,7 +560,7 @@ public: protected: - virtual void CopyDeviceArea( SalTwoRect& aPosAry, sal_uInt32 nFlags); + virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate = false); SAL_DLLPRIVATE void drawOutDevDirect ( const OutputDevice* pSrcDev, SalTwoRect& rPosAry ); diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 7fe9e7926d71..70dcb9ccf278 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -399,7 +399,7 @@ public: const OutputDevice& rOutDev ) SAL_OVERRIDE; virtual void CopyArea( const Point& rDestPt, const Point& rSrcPt, const Size& rSrcSize, - sal_uInt16 nFlags = 0 ) SAL_OVERRIDE; + bool bWindowInvalidate = false ) SAL_OVERRIDE; virtual void DrawImage( const Point&, const Image&, sal_uInt16 ) SAL_OVERRIDE; virtual void DrawImage( const Point&, const Size&, diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index d975ff872fad..9e760e3b5b43 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -699,7 +699,7 @@ protected: // FIXME: this is a hack to workaround missing layout functionality SAL_DLLPRIVATE void ImplAdjustNWFSizes(); - virtual void CopyDeviceArea( SalTwoRect& aPosAry, sal_uInt32 nFlags) SAL_OVERRIDE; + virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate = false) SAL_OVERRIDE; virtual void ClipToPaintRegion( Rectangle& rDstRect ) SAL_OVERRIDE; virtual bool UsePolyPolygonForComplexGradient() SAL_OVERRIDE; |