diff options
author | ericb <ericb@ordinateur-de-eric-b-2.local> | 2009-12-16 08:20:42 +0100 |
---|---|---|
committer | ericb <ericb@ordinateur-de-eric-b-2.local> | 2009-12-16 08:20:42 +0100 |
commit | 90ca57da108d6e933c19e690ce82ef8da722523e (patch) | |
tree | e11adc572c4a844a53a26ee382788c572cfe7541 /slideshow/source/engine/tools.cxx | |
parent | da9da1e422133df70aceb36c70540524fde0e840 (diff) |
eraser01: #i97972# yet some build issues due to rebase
Diffstat (limited to 'slideshow/source/engine/tools.cxx')
-rw-r--r-- | slideshow/source/engine/tools.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx index 249375f99032..2f3a18744144 100644 --- a/slideshow/source/engine/tools.cxx +++ b/slideshow/source/engine/tools.cxx @@ -710,6 +710,17 @@ namespace slideshow static_cast< sal_uInt8 >( nColor >> 24U ) ) ); } + sal_Int32 RGBAColor2UnoColor( ::cppcanvas::Color::IntSRGBA aColor ) + { + return ::cppcanvas::makeColorARGB( + // convert from IntSRGBA color to API color + // (0xRRGGBBAA -> 0xAARRGGBB) + static_cast< sal_uInt8 >(0), + ::cppcanvas::getRed(aColor), + ::cppcanvas::getGreen(aColor), + ::cppcanvas::getBlue(aColor)); + } + /*sal_Int32 RGBAColor2UnoColor( ::cppcanvas::Color::IntSRGBA aColor ) { return ::cppcanvas::unMakeColor( |