summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/outdevstate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev/outdevstate.cxx')
-rw-r--r--vcl/source/outdev/outdevstate.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx
index c34e9fcf95e0..7fa966606744 100644
--- a/vcl/source/outdev/outdevstate.cxx
+++ b/vcl/source/outdev/outdevstate.cxx
@@ -468,17 +468,7 @@ void OutputDevice::SetBackground( const Wallpaper& rBackground )
if( bitmap.IsAlpha())
mpAlphaVDev->SetBackground( Wallpaper( BitmapEx( Bitmap( bitmap.GetAlpha()))));
else
- {
- switch( bitmap.GetTransparentType())
- {
- case TransparentType::NONE:
- mpAlphaVDev->SetBackground( Wallpaper( COL_BLACK ));
- break;
- case TransparentType::Bitmap:
- mpAlphaVDev->SetBackground( Wallpaper( BitmapEx( bitmap.GetMask())));
- break;
- }
- }
+ mpAlphaVDev->SetBackground( Wallpaper( COL_BLACK ));
}
else if( rBackground.IsGradient())
mpAlphaVDev->SetBackground( Wallpaper( COL_BLACK ));