diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-26 09:59:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 10:15:14 +0100 |
commit | 190de05d55880c303a6161ec9b27a760300ff2ce (patch) | |
tree | 4cff9e144a8bf24e1008533bd63d46f849fbad6f /vcl/source/window | |
parent | 40c487469b0dcd367ca76a2407f5ef08287dbabb (diff) |
remove unused DrawButtonFlags enum value
Change-Id: I5e1a92d94e5b7963c8162b74f1b67dbbf3eeccc9
Reviewed-on: https://gerrit.libreoffice.org/64063
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/decoview.cxx | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index c105dc82fc76..c8cfb1d70f3f 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -509,15 +509,12 @@ void ImplDrawButton( OutputDevice *const pDev, tools::Rectangle aFillRect, aOrigFillRect.Right(), aOrigFillRect.Bottom() ) ); } - if ( !(nStyle & DrawButtonFlags::NoFill) ) - { - // Hack: in monochrome mode on printers we like to have grey buttons - if ( pDev->GetOutDevType() == OUTDEV_PRINTER ) - pDev->SetFillColor( COL_LIGHTGRAY ); - else - pDev->SetFillColor( COL_WHITE ); - pDev->DrawRect( aFillRect ); - } + // Hack: in monochrome mode on printers we like to have grey buttons + if ( pDev->GetOutDevType() == OUTDEV_PRINTER ) + pDev->SetFillColor( COL_LIGHTGRAY ); + else + pDev->SetFillColor( COL_WHITE ); + pDev->DrawRect( aFillRect ); } else { @@ -574,15 +571,12 @@ void ImplDrawButton( OutputDevice *const pDev, tools::Rectangle aFillRect, ImplDraw2ColorFrame( pDev, aFillRect, aColor1, aColor2 ); } - if ( !(nStyle & DrawButtonFlags::NoFill) ) - { - pDev->SetLineColor(); - if ( nStyle & (DrawButtonFlags::Checked | DrawButtonFlags::DontKnow) ) - pDev->SetFillColor( rStyleSettings.GetCheckedColor() ); - else - pDev->SetFillColor( rStyleSettings.GetFaceColor() ); - pDev->DrawRect( aFillRect ); - } + pDev->SetLineColor(); + if ( nStyle & (DrawButtonFlags::Checked | DrawButtonFlags::DontKnow) ) + pDev->SetFillColor( rStyleSettings.GetCheckedColor() ); + else + pDev->SetFillColor( rStyleSettings.GetFaceColor() ); + pDev->DrawRect( aFillRect ); } } |