diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-01-31 01:04:10 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-10-07 17:33:45 +0200 |
commit | 21ec9beae29b19b8ec6f0a16fd0e708e4f210208 (patch) | |
tree | 84b5d635ba0c39282665dea33f40348a1ca73178 /canvas/source/tools | |
parent | 3e2dba1accbd018f7dac362a2636bed135f1b5bb (diff) |
XCanvas does no longer imply XBitmapCanvas
Remove the implication that XCanvas IS-A XBitmapCanvas, i.e. one can
access underlying pixels. That's a preparation for display-list based
canvas implementations, and was a rather silly assumption in the first
place.
Also fixes up all client sites.
Change-Id: I7a3d6f68ef46fe94b23cce7759cc0b8b6ca4dae9
Diffstat (limited to 'canvas/source/tools')
-rw-r--r-- | canvas/source/tools/canvastools.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx index 26775befb3b4..d6b949b511c5 100644 --- a/canvas/source/tools/canvastools.cxx +++ b/canvas/source/tools/canvastools.cxx @@ -387,7 +387,7 @@ namespace canvas *pOut++ = vcl::unotools::toDoubleColor(*pIn++); *pOut++ = vcl::unotools::toDoubleColor(*pIn++); *pOut++ = vcl::unotools::toDoubleColor(*pIn++); - *pOut++ = vcl::unotools::toDoubleColor(255-*pIn++); + *pOut++ = vcl::unotools::toDoubleColor(*pIn++); } return aRes; } @@ -452,7 +452,7 @@ namespace canvas for( sal_Size i=0; i<nLen; i+=4 ) { *pOut++ = rendering::ARGBColor( - vcl::unotools::toDoubleColor(255-pIn[3]), + vcl::unotools::toDoubleColor(pIn[3]), vcl::unotools::toDoubleColor(pIn[0]), vcl::unotools::toDoubleColor(pIn[1]), vcl::unotools::toDoubleColor(pIn[2])); @@ -473,7 +473,7 @@ namespace canvas rendering::ARGBColor* pOut( aRes.getArray() ); for( sal_Size i=0; i<nLen; i+=4 ) { - const sal_Int8 nAlpha( 255-pIn[3] ); + const sal_Int8 nAlpha( pIn[3] ); *pOut++ = rendering::ARGBColor( vcl::unotools::toDoubleColor(nAlpha), vcl::unotools::toDoubleColor(nAlpha*pIn[0]), @@ -514,7 +514,7 @@ namespace canvas *pColors++ = vcl::unotools::toByteColor(pIn->Red); *pColors++ = vcl::unotools::toByteColor(pIn->Green); *pColors++ = vcl::unotools::toByteColor(pIn->Blue); - *pColors++ = 255-vcl::unotools::toByteColor(pIn->Alpha); + *pColors++ = vcl::unotools::toByteColor(pIn->Alpha); ++pIn; } return aRes; @@ -532,7 +532,7 @@ namespace canvas *pColors++ = vcl::unotools::toByteColor(pIn->Red/pIn->Alpha); *pColors++ = vcl::unotools::toByteColor(pIn->Green/pIn->Alpha); *pColors++ = vcl::unotools::toByteColor(pIn->Blue/pIn->Alpha); - *pColors++ = 255-vcl::unotools::toByteColor(pIn->Alpha); + *pColors++ = vcl::unotools::toByteColor(pIn->Alpha); ++pIn; } return aRes; |