Browse Source

unnecessary parens

v1.x
Tj Holowaychuk 14 years ago
parent
commit
5f74448ba2
  1. 6
      src/Image.cc

6
src/Image.cc

@ -459,9 +459,9 @@ Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) {
for (int y = 0; y < height; ++y) { for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x) { for (int x = 0; x < width; ++x) {
*dst_data = ((*src_data == alphaColor) ? 0 : 255) << 24 *dst_data = ((*src_data == alphaColor) ? 0 : 255) << 24
| (colormap->Colors[*src_data].Red) << 16 | colormap->Colors[*src_data].Red << 16
| (colormap->Colors[*src_data].Green) << 8 | colormap->Colors[*src_data].Green << 8
| (colormap->Colors[*src_data].Blue); | colormap->Colors[*src_data].Blue;
dst_data++; dst_data++;
src_data++; src_data++;

Loading…
Cancel
Save