summaryrefslogtreecommitdiff
path: root/src/Fl_GIF_Image.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-11-27 15:05:50 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-11-27 15:05:50 +0000
commitf3182417c09c69dee7cd433f991e4b6da0de4650 (patch)
treeadcdf97cad5589ef31b53778309f1fe2b03ed7fa /src/Fl_GIF_Image.cxx
parente321cb37bfe0379f54010eb42a36573ca561e71f (diff)
Update dependencies.
Eliminate compiler warnings in Fl_GIF_Image.cxx. Add X11 icon code to sudoku example. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_GIF_Image.cxx')
-rw-r--r--src/Fl_GIF_Image.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_GIF_Image.cxx b/src/Fl_GIF_Image.cxx
index 5d6fc9af6..e40a9d218 100644
--- a/src/Fl_GIF_Image.cxx
+++ b/src/Fl_GIF_Image.cxx
@@ -110,8 +110,8 @@ Fl_GIF_Image::Fl_GIF_Image(const char *infname) : Fl_Pixmap((char *const*)0) {
int ColorMapSize = 1 << BitsPerPixel;
// int OriginalResolution = ((ch>>4)&7)+1;
// int SortedTable = (ch&8)!=0;
- NEXTBYTE; // Background Color index
- NEXTBYTE; // Aspect ratio is N/64
+ ch = NEXTBYTE; // Background Color index
+ ch = NEXTBYTE; // Aspect ratio is N/64
// Read in global colormap:
uchar transparent_pixel = 0;
@@ -153,7 +153,7 @@ Fl_GIF_Image::Fl_GIF_Image(const char *infname) : Fl_Pixmap((char *const*)0) {
char bits;
bits = NEXTBYTE;
- NEXTBYTE; NEXTBYTE; // GETSHORT(delay);
+ char junk = NEXTBYTE; junk = NEXTBYTE; // GETSHORT(delay);
transparent_pixel = NEXTBYTE;
if (bits & 1) has_transparent = 1;
blocklen = NEXTBYTE;
@@ -166,8 +166,8 @@ Fl_GIF_Image::Fl_GIF_Image(const char *infname) : Fl_Pixmap((char *const*)0) {
}
} else if (i == 0x2c) { // an image
- NEXTBYTE; NEXTBYTE; // GETSHORT(x_position);
- NEXTBYTE; NEXTBYTE; // GETSHORT(y_position);
+ ch = NEXTBYTE; ch = NEXTBYTE; // GETSHORT(x_position);
+ ch = NEXTBYTE; ch = NEXTBYTE; // GETSHORT(y_position);
GETSHORT(Width);
GETSHORT(Height);
ch = NEXTBYTE;
@@ -189,7 +189,7 @@ Fl_GIF_Image::Fl_GIF_Image(const char *infname) : Fl_Pixmap((char *const*)0) {
}
// skip the data:
- while (blocklen>0) {while (blocklen--) {NEXTBYTE;} blocklen=NEXTBYTE;}
+ while (blocklen>0) {while (blocklen--) {ch = NEXTBYTE;} blocklen=NEXTBYTE;}
}
if (BitsPerPixel >= CodeSize)