diff options
author | thb <thb@openoffice.org> | 2010-01-07 14:38:08 +0100 |
---|---|---|
committer | thb <thb@openoffice.org> | 2010-01-07 14:38:08 +0100 |
commit | dc30bf68e31367f98e111812177306fe4fe39b95 (patch) | |
tree | e518a2e3b9b5dc9f1ea2303473f571c8cc60a307 /cppcanvas | |
parent | 3f77adb947ea286d12d27cc969ffb7233e8effa5 (diff) | |
parent | 74d69666a871202c0073d4fe23982c7cea063276 (diff) |
eraser01: merged with erics additional fixes
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/inc/cppcanvas/color.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cppcanvas/inc/cppcanvas/color.hxx b/cppcanvas/inc/cppcanvas/color.hxx index e1cb30900e5e..ad0430713ead 100644 --- a/cppcanvas/inc/cppcanvas/color.hxx +++ b/cppcanvas/inc/cppcanvas/color.hxx @@ -83,6 +83,11 @@ namespace cppcanvas return (nRed << 24U)|(nGreen << 16U)|(nBlue << 8U)|(nAlpha); } + inline sal_Int32 unMakeColor( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue) + { + return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue); + } + inline sal_Int32 makeColorARGB( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue) { return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue); |