diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-19 16:37:36 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-19 16:37:36 +0000 |
| commit | a74795bbb88ffee1cc35144466c161f2bf585e1f (patch) | |
| tree | 0f0bc7d27e310d4970ba963c622c4fa91aa6eef2 /src/fl_draw_image_win32.cxx | |
| parent | 2921ca57a03c93d10e8791830256d8baf73e523f (diff) | |
Get rid of some valid compiler warnings with CodeWarrior that were reported
by Paul Chambers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_draw_image_win32.cxx')
| -rw-r--r-- | src/fl_draw_image_win32.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fl_draw_image_win32.cxx b/src/fl_draw_image_win32.cxx index 2aaf02856..6d5b8600f 100644 --- a/src/fl_draw_image_win32.cxx +++ b/src/fl_draw_image_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_draw_image_win32.cxx,v 1.4.2.3.2.2 2002/01/01 15:11:32 easysw Exp $" +// "$Id: fl_draw_image_win32.cxx,v 1.4.2.3.2.3 2002/11/19 16:37:36 easysw Exp $" // // WIN32 image drawing code for the Fast Light Tool Kit (FLTK). // @@ -137,17 +137,17 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, } #if USE_COLORMAP if (indexed) { - for (int i=0; i<256; i++) { + for (short i=0; i<256; i++) { *((short*)(bmi.bmiColors)+i) = i; } } else #endif if (mono) { for (int i=0; i<256; i++) { - bmi.bmiColors[i].rgbBlue = i; - bmi.bmiColors[i].rgbGreen = i; - bmi.bmiColors[i].rgbRed = i; - bmi.bmiColors[i].rgbReserved = i; + bmi.bmiColors[i].rgbBlue = (uchar)(i; + bmi.bmiColors[i].rgbGreen = (uchar)(i; + bmi.bmiColors[i].rgbRed = (uchar)(i; + bmi.bmiColors[i].rgbReserved = (uchar)(i; } } bmi.bmiHeader.biWidth = w; @@ -258,5 +258,5 @@ void fl_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b) { } // -// End of "$Id: fl_draw_image_win32.cxx,v 1.4.2.3.2.2 2002/01/01 15:11:32 easysw Exp $". +// End of "$Id: fl_draw_image_win32.cxx,v 1.4.2.3.2.3 2002/11/19 16:37:36 easysw Exp $". // |
