diff options
Diffstat (limited to 'src/Fl_BMP_Image.cxx')
| -rw-r--r-- | src/Fl_BMP_Image.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_BMP_Image.cxx b/src/Fl_BMP_Image.cxx index a7ca84523..6f6c3e23d 100644 --- a/src/Fl_BMP_Image.cxx +++ b/src/Fl_BMP_Image.cxx @@ -82,7 +82,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read byte; // Byte in image uchar *ptr; // Pointer into pixels uchar colormap[256][3];// Colormap - uchar mask = 0; // single bit mask follows image data + uchar havemask = 0; // single bit mask follows image data // Open the file... if ((fp = fopen(bmp, "rb")) == NULL) return; @@ -134,7 +134,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read int Bpp = depth/8; int maskSize = (((w()*Bpp+3)&~3)*h()) + (((((w()+7)/8)+3)&~3)*h()); if (maskSize==2*dataSize) { - mask = 1; + havemask = 1; h(h()/2); bDepth = 4; } @@ -329,7 +329,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read *ptr++ = colormap[temp][2]; *ptr++ = colormap[temp][1]; *ptr++ = colormap[temp][0]; - if (mask) ptr++; + if (havemask) ptr++; } if (!compression) { @@ -375,7 +375,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read } } - if (mask) { + if (havemask) { for (y = h() - 1; y >= 0; y --) { ptr = (uchar *)array + y * w() * d() + 3; for (x = w(), bit = 128; x > 0; x --, ptr+=bDepth) { |
