diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-25 09:11:03 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-25 09:59:43 +0000 |
commit | edc87278036107dc392253bdcb99dce54a1d0a41 (patch) | |
tree | f917dce3ef48baf95af92a3fcaf11dcb5ef8e1cb /drawinglayer/source/primitive2d | |
parent | 2af018e4dd99fccdc85a28b38ff924fb16a750cf (diff) |
Convert Disposal to scoped enum
and drop unused FULL value
Change-Id: I3b9c26cb164785ef86f1a8d57cce962b015c85d6
Reviewed-on: https://gerrit.libreoffice.org/25432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'drawinglayer/source/primitive2d')
-rw-r--r-- | drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx index 93a5f55133ac..87d3959cebf9 100644 --- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx @@ -117,7 +117,7 @@ namespace switch(rAnimBitmap.eDisposal) { - case DISPOSE_NOT: + case Disposal::Not: { aVirtualDevice->DrawBitmapEx(rAnimBitmap.aPosPix, rAnimBitmap.aBmpEx); Bitmap aMask = rAnimBitmap.aBmpEx.GetMask(); @@ -137,7 +137,7 @@ namespace break; } - case DISPOSE_BACK: + case Disposal::Back: { // #i70772# react on no mask, for primitives, too. const Bitmap aMask(rAnimBitmap.aBmpEx.GetMask()); @@ -160,12 +160,7 @@ namespace break; } - case DISPOSE_FULL: - { - aVirtualDevice->DrawBitmapEx(rAnimBitmap.aPosPix, rAnimBitmap.aBmpEx); - break; - } - case DISPOSE_PREVIOUS : + case Disposal::Previous : { aVirtualDevice->DrawBitmapEx(rAnimBitmap.aPosPix, rAnimBitmap.aBmpEx); aVirtualDeviceMask->DrawBitmap(rAnimBitmap.aPosPix, rAnimBitmap.aBmpEx.GetMask()); |