diff options
author | Yury Melnichek <melnichek@gmail.com> | 2013-08-28 14:56:57 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:00:27 +0300 |
commit | 7bfa0814e9a9f35f50331276b5bd6b87f83564b9 (patch) | |
tree | 1e0c3926a7bcb557713a6ba9da5d82e29bae06c9 /3party/agg | |
parent | ddd458ee3ae75a2edb40f1b2264371d0ccc08772 (diff) |
[sr] Agg blender_rgb4444 code review fixes.
Diffstat (limited to '3party/agg')
-rw-r--r-- | 3party/agg/agg_pixfmt_rgb_packed.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3party/agg/agg_pixfmt_rgb_packed.h b/3party/agg/agg_pixfmt_rgb_packed.h index 401bbc3165..c809b55bb9 100644 --- a/3party/agg/agg_pixfmt_rgb_packed.h +++ b/3party/agg/agg_pixfmt_rgb_packed.h @@ -809,9 +809,9 @@ namespace agg calc_type b1 = color_type::lerp(b, cb, alpha); calc_type a1 = color_type::prelerp(a, alpha, alpha); *p = (pixel_type) - (((r1 >> 4) << 12) | - ((g1 >> 4) << 8) | - ((b1 >> 4) << 4) | + (((r1 & 0xF0) << 8) | + ((g1 & 0xF0) << 4) | + (b1 & 0xF0) | (a1 >> 4)); } |