diff options
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/splash/splash.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index 5856410ec9d8..a58b8227d928 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -39,6 +39,7 @@ #include <vcl/virdev.hxx> #define NOT_LOADED (long(-1)) +#define NOT_LOADED_COLOR (Color(0xffffffff)) using namespace ::com::sun::star::lang; using namespace ::com::sun::star::registry; @@ -148,9 +149,9 @@ void SplashScreenWindow::Redraw() SplashScreen::SplashScreen() : pWindow( VclPtr<SplashScreenWindow>::Create(this) ) - , _cProgressFrameColor(sal::static_int_cast< ColorData >(NOT_LOADED)) - , _cProgressBarColor(sal::static_int_cast< ColorData >(NOT_LOADED)) - , _cProgressTextColor(sal::static_int_cast< ColorData >(NOT_LOADED)) + , _cProgressFrameColor(NOT_LOADED_COLOR) + , _cProgressBarColor(NOT_LOADED_COLOR) + , _cProgressTextColor(NOT_LOADED_COLOR) , _bNativeProgress(true) , _iMax(100) , _iProgress(0) @@ -294,12 +295,10 @@ SplashScreen::initialize( const css::uno::Sequence< css::uno::Any>& aArguments ) if ( NOT_LOADED == _textBaseline ) _textBaseline = _height; - if ( sal::static_int_cast< ColorData >(NOT_LOADED) == - _cProgressFrameColor.GetColor() ) + if ( NOT_LOADED_COLOR == _cProgressFrameColor ) _cProgressFrameColor = Color( COL_LIGHTGRAY ); - if ( sal::static_int_cast< ColorData >(NOT_LOADED) == - _cProgressBarColor.GetColor() ) + if ( NOT_LOADED_COLOR == _cProgressBarColor ) { // progress bar: new color only for big bitmap format if ( _width > 500 ) @@ -308,8 +307,7 @@ SplashScreen::initialize( const css::uno::Sequence< css::uno::Any>& aArguments ) _cProgressBarColor = Color( COL_BLUE ); } - if ( sal::static_int_cast< ColorData >(NOT_LOADED) == - _cProgressTextColor.GetColor() ) + if ( NOT_LOADED_COLOR == _cProgressTextColor ) _cProgressTextColor = Color( COL_BLACK ); Application::AddEventListener( |