diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-24 14:19:19 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-24 14:19:19 +0000 |
| commit | 3a117a899c6abb192f2498e88cc30997ad5763c2 (patch) | |
| tree | b86fdbec53783e7f239197935ab3b085f286128c /src/Fl_BMP_Image.cxx | |
| parent | 262321f5e61bb801b6e169e697d9a716cfb0c439 (diff) | |
Get rid of as many compiler warnings as possible.
Add missing offbits seek when reading BMP files.
Add -OPT:Olimit=4000 to SGI compiler options (for keyboard_ui)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_BMP_Image.cxx')
| -rw-r--r-- | src/Fl_BMP_Image.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_BMP_Image.cxx b/src/Fl_BMP_Image.cxx index 55a91fe66..4a911e56c 100644 --- a/src/Fl_BMP_Image.cxx +++ b/src/Fl_BMP_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_BMP_Image.cxx,v 1.1.2.2 2002/05/15 19:42:34 easysw Exp $" +// "$Id: Fl_BMP_Image.cxx,v 1.1.2.3 2002/05/24 14:19:19 easysw Exp $" // // Fl_BMP_Image routines. // @@ -75,7 +75,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read count, // Number of times to repeat temp, // Temporary color align; // Alignment bytes - long offbits; // Offset to image data + unsigned long offbits; // Offset to image data uchar bit, // Bit in image byte; // Byte in image uchar *ptr; // Pointer into pixels @@ -137,6 +137,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read // Setup image and buffers... d(3); + fseek(fp, offbits, SEEK_SET); array = new uchar[w() * h() * d()]; @@ -369,5 +370,5 @@ read_long(FILE *fp) { // I - File to read from // -// End of "$Id: Fl_BMP_Image.cxx,v 1.1.2.2 2002/05/15 19:42:34 easysw Exp $". +// End of "$Id: Fl_BMP_Image.cxx,v 1.1.2.3 2002/05/24 14:19:19 easysw Exp $". // |
