summaryrefslogtreecommitdiff
path: root/src/fl_draw_pixmap.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-11-19 16:37:36 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-11-19 16:37:36 +0000
commita74795bbb88ffee1cc35144466c161f2bf585e1f (patch)
tree0f0bc7d27e310d4970ba963c622c4fa91aa6eef2 /src/fl_draw_pixmap.cxx
parent2921ca57a03c93d10e8791830256d8baf73e523f (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_pixmap.cxx')
-rw-r--r--src/fl_draw_pixmap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fl_draw_pixmap.cxx b/src/fl_draw_pixmap.cxx
index 8c06d8870..681856688 100644
--- a/src/fl_draw_pixmap.cxx
+++ b/src/fl_draw_pixmap.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_draw_pixmap.cxx,v 1.4.2.8.2.10 2002/08/09 03:17:30 easysw Exp $"
+// "$Id: fl_draw_pixmap.cxx,v 1.4.2.8.2.11 2002/11/19 16:37:36 easysw Exp $"
//
// Pixmap drawing code for the Fast Light Tool Kit (FLTK).
//
@@ -230,7 +230,7 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) {
const uchar* p = data[Y];
if (chars_per_pixel <= 1) {
for (int X = 0; X < W; X++) {
- int b = (*p++ != transparent_index);
+ uchar b = (*p++ != transparent_index);
if (*p++ != transparent_index) b |= 2;
if (*p++ != transparent_index) b |= 4;
if (*p++ != transparent_index) b |= 8;
@@ -242,7 +242,7 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) {
}
} else {
for (int X = 0; X < W; X++) {
- int b = 0;
+ uchar b = 0;
for (int i = 0; i < 8; i++) {
int ind = *p++;
ind = (ind<<8) | (*p++);
@@ -260,5 +260,5 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) {
}
//
-// End of "$Id: fl_draw_pixmap.cxx,v 1.4.2.8.2.10 2002/08/09 03:17:30 easysw Exp $".
+// End of "$Id: fl_draw_pixmap.cxx,v 1.4.2.8.2.11 2002/11/19 16:37:36 easysw Exp $".
//