summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-18 15:41:24 +0200
committerNoel Grandin <noel@peralex.com>2015-05-20 09:52:08 +0200
commitdcefc97c8bd5be9ba229098c32d2a5c73d084163 (patch)
tree860caac40b5c15ddb3cd1297316975d7034b260e /vcl/source/control/button.cxx
parent953f327818f565969b8de5d9b956bd6b9a7c64b2 (diff)
convert IMAGE_DRAW_ constants to scoped enum
Change-Id: I75619eeb902af4953a5ac1525605cf3f0f15e2c0
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index f66067237494..7714c240ed02 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -485,11 +485,11 @@ void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,
}
}
- sal_uInt16 nStyle = 0;
+ DrawImageFlags nStyle = DrawImageFlags::NONE;
if ( ! ( nDrawFlags & WINDOW_DRAW_NODISABLE ) &&
! IsEnabled() )
- nStyle |= IMAGE_DRAW_DISABLE;
+ nStyle |= DrawImageFlags::Disable;
if ( IsZoom() )
pDev->DrawImage( aImagePos, aImageSize, *pImage, nStyle );
@@ -1937,9 +1937,9 @@ void RadioButton::ImplDrawRadioButtonState(vcl::RenderContext& rRenderContext)
rRenderContext.DrawRect(aImageRect);
// display image
- sal_uInt16 nImageStyle = 0;
+ DrawImageFlags nImageStyle = DrawImageFlags::NONE;
if (!bEnabled)
- nImageStyle |= IMAGE_DRAW_DISABLE;
+ nImageStyle |= DrawImageFlags::Disable;
Image* pImage = &maImage;
@@ -3890,9 +3890,9 @@ void DisclosureButton::ImplDrawCheckBoxState(vcl::RenderContext& rRenderContext)
if (!pImg)
return;
- sal_uInt16 nStyle = 0;
+ DrawImageFlags nStyle = DrawImageFlags::NONE;
if (!IsEnabled())
- nStyle |= IMAGE_DRAW_DISABLE;
+ nStyle |= DrawImageFlags::Disable;
Size aSize(aStateRect.GetSize());
Size aImgSize(pImg->GetSizePixel());