diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 10:32:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 16:11:58 +0100 |
commit | 97448039e1e63f3bd6b61ab3215ede721ca368e4 (patch) | |
tree | e2ea6d151df11160f2922e9e6c0c8b502a98c2fe /vcl/quartz | |
parent | e95618d754ee4e75632ed5f2bc29b8a021f45731 (diff) |
use less RGB_COLORDATA
part of removing ColorData
Change-Id: If31b5b88545529863377e9a178f45f4516bf6cbb
Reviewed-on: https://gerrit.libreoffice.org/50345
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index e7a614dbe50f..dde6470aeb08 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -381,7 +381,7 @@ public: } virtual Color ReadPixel() override { - const Color c = RGB_COLORDATA( pData[1], pData[2], pData[3] ); + const Color c = Color( pData[1], pData[2], pData[3] ); pData += 4; return c; } @@ -406,7 +406,7 @@ public: } virtual Color ReadPixel() override { - const Color c = RGB_COLORDATA( pData[2], pData[1], pData[0] ); + const Color c = Color( pData[2], pData[1], pData[0] ); pData += 3; return c; } @@ -434,7 +434,7 @@ public: } virtual Color ReadPixel() override { - const Color c = RGB_COLORDATA( (*pData & 0xf800) >> 8, (*pData & 0x07e0) >> 3 , (*pData & 0x001f) << 3 ); + const Color c = Color( (*pData & 0xf800) >> 8, (*pData & 0x07e0) >> 3 , (*pData & 0x001f) << 3 ); pData++; return c; } |