From 0ada64dfd99fdaa1b182f88d32e4f4c6fbd2b5f6 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Mon, 28 Apr 2014 19:24:08 +1000 Subject: VCL: Move SetBackground from outdev.cxx to outdevstate.cxx Change-Id: I04bf1470e43ed08ef5759fcbd6f96d4896f7690b --- vcl/source/outdev/outdev.cxx | 24 ------------------------ vcl/source/outdev/outdevstate.cxx | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'vcl') diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index 31c577447270..c0dd42a3844f 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -821,30 +821,6 @@ Color OutputDevice::ImplDrawModeToColor( const Color& rColor ) const return aColor; } -void OutputDevice::SetBackground() -{ - - maBackground = Wallpaper(); - mbBackground = false; - - if( mpAlphaVDev ) - mpAlphaVDev->SetBackground(); -} - -void OutputDevice::SetBackground( const Wallpaper& rBackground ) -{ - - maBackground = rBackground; - - if( rBackground.GetStyle() == WALLPAPER_NULL ) - mbBackground = false; - else - mbBackground = true; - - if( mpAlphaVDev ) - mpAlphaVDev->SetBackground( rBackground ); -} - void OutputDevice::SetRefPoint() { diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx index 2fada5ef6060..d149542d56b3 100644 --- a/vcl/source/outdev/outdevstate.cxx +++ b/vcl/source/outdev/outdevstate.cxx @@ -347,6 +347,30 @@ void OutputDevice::SetFillColor( const Color& rColor ) mpAlphaVDev->SetFillColor( COL_BLACK ); } +void OutputDevice::SetBackground() +{ + + maBackground = Wallpaper(); + mbBackground = false; + + if( mpAlphaVDev ) + mpAlphaVDev->SetBackground(); +} + +void OutputDevice::SetBackground( const Wallpaper& rBackground ) +{ + + maBackground = rBackground; + + if( rBackground.GetStyle() == WALLPAPER_NULL ) + mbBackground = false; + else + mbBackground = true; + + if( mpAlphaVDev ) + mpAlphaVDev->SetBackground( rBackground ); +} + void OutputDevice::InitFillColor() { -- cgit