Browse Source

unnecessary parens

v1.x
Tj Holowaychuk 14 years ago
parent
commit
7f8c2998a3
  1. 2
      src/Image.cc

2
src/Image.cc

@ -474,7 +474,7 @@ Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) {
for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x) {
if ((y < img->Top) || (y >= bottom) || (x < img->Left) || (x >= right)) {
if (y < img->Top || y >= bottom || x < img->Left || x >= right) {
*dst_data = ((bgColor == alphaColor) ? 0 : 255) << 24
| colormap->Colors[bgColor].Red << 16
| colormap->Colors[bgColor].Green << 8

Loading…
Cancel
Save