diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-07 18:21:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-08 09:08:37 +0100 |
commit | bac6c21fb20607db0758210bf9946b46ecbb2a6f (patch) | |
tree | 0b05c5bdfc9ee832249cac998cadc63c82478c6f /vcl | |
parent | b4951108cfd38ae5d0b0782fba9b382640fdb0b2 (diff) |
use more IsTransparent
Change-Id: I3ef18a2601a51d56614b5da9b56e871bd33ec79e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108942
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/BitmapEx.cxx | 2 | ||||
-rw-r--r-- | vcl/source/font/font.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/wallpaper.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window2.cxx | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/bitmap/BitmapEx.cxx b/vcl/source/bitmap/BitmapEx.cxx index 08da777e3cc5..18978f779f4a 100644 --- a/vcl/source/bitmap/BitmapEx.cxx +++ b/vcl/source/bitmap/BitmapEx.cxx @@ -572,7 +572,7 @@ bool BitmapEx::Erase( const Color& rFillColor ) if( bRet && ( meTransparent == TransparentType::Bitmap ) && !!maMask ) { // Respect transparency on fill color - if( rFillColor.GetTransparency() ) + if( rFillColor.IsTransparent() ) { const Color aFill( rFillColor.GetTransparency(), rFillColor.GetTransparency(), rFillColor.GetTransparency() ); maMask.Erase( aFill ); diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx index fdd9ef68413e..21334ecba1cf 100644 --- a/vcl/source/font/font.cxx +++ b/vcl/source/font/font.cxx @@ -89,7 +89,7 @@ void Font::SetColor( const Color& rColor ) void Font::SetFillColor( const Color& rColor ) { mpImplFont->maFillColor = rColor; - if ( rColor.GetTransparency() ) + if ( rColor.IsTransparent() ) mpImplFont->mbTransparent = true; } diff --git a/vcl/source/outdev/wallpaper.cxx b/vcl/source/outdev/wallpaper.cxx index 34d5d0c81e11..62258420ef5e 100644 --- a/vcl/source/outdev/wallpaper.cxx +++ b/vcl/source/outdev/wallpaper.cxx @@ -165,7 +165,7 @@ void OutputDevice::DrawBitmapWallpaper( tools::Long nX, tools::Long nY, bDrawGradientBackground = true; else { - if( !pCached && !rWallpaper.GetColor().GetTransparency() ) + if( !pCached && !rWallpaper.GetColor().IsTransparent() ) { ScopedVclPtrInstance< VirtualDevice > aVDev( *this ); aVDev->SetBackground( rWallpaper.GetColor() ); diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index dc3dcdc93db0..babf85198949 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -466,7 +466,7 @@ void Window::SetControlForeground() void Window::SetControlForeground(const Color& rColor) { - if (rColor.GetTransparency()) + if (rColor.IsTransparent()) { if (mpWindowImpl->mbControlForeground) { @@ -506,7 +506,7 @@ void Window::SetControlBackground() void Window::SetControlBackground(const Color& rColor) { - if (rColor.GetTransparency()) + if (rColor.IsTransparent()) { if (mpWindowImpl->mbControlBackground) { |