diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-08-09 03:17:30 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-08-09 03:17:30 +0000 |
| commit | 050919103f76dbe4aebaa8ac8a1e2633713ee571 (patch) | |
| tree | 1ff838116d1bdfa2607daf40eba4a38eb2404b8c /src/fl_draw_pixmap.cxx | |
| parent | a6b935289ed59305318929b857bf74f671125e87 (diff) | |
More shadow variable changes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_draw_pixmap.cxx')
| -rw-r--r-- | src/fl_draw_pixmap.cxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/fl_draw_pixmap.cxx b/src/fl_draw_pixmap.cxx index 0059aa11a..8c06d8870 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.9 2002/05/25 13:38:25 easysw Exp $" +// "$Id: fl_draw_pixmap.cxx,v 1.4.2.8.2.10 2002/08/09 03:17:30 easysw Exp $" // // Pixmap drawing code for the Fast Light Tool Kit (FLTK). // @@ -178,20 +178,20 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) { for (int i=0; i<ncolors; i++) { const uchar *p = *data++; // the first 1 or 2 characters are the color index: - int index = *p++; + int ind = *p++; uchar* c; if (chars_per_pixel>1) { #ifdef U64 - U64* colors = d.byte1[index]; - if (!colors) colors = d.byte1[index] = new U64[256]; + U64* colors = d.byte1[ind]; + if (!colors) colors = d.byte1[ind] = new U64[256]; #else - U32* colors = d.byte1[index]; - if (!colors) colors = d.byte1[index] = new U32[256]; + U32* colors = d.byte1[ind]; + if (!colors) colors = d.byte1[ind] = new U32[256]; #endif c = (uchar*)&colors[*p]; - index = (index<<8)+*p++; + ind = (ind<<8)+*p++; } else { - c = (uchar *)&d.colors[index]; + c = (uchar *)&d.colors[ind]; } // look for "c word", or last word if none: const uchar *previous_word = p; @@ -215,7 +215,7 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) { // assume "None" or "#transparent" for any errors // "bg" should be transparent... Fl::get_color(bg, c[0], c[1], c[2]); - transparent_index = index; + transparent_index = ind; } } } @@ -226,10 +226,10 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) { int W = (d.w+7)/8; uchar* bitmap = new uchar[W * d.h]; *fl_mask_bitmap = bitmap; - for (int y = 0; y < d.h; y++) { - const uchar* p = data[y]; + for (int Y = 0; Y < d.h; Y++) { + const uchar* p = data[Y]; if (chars_per_pixel <= 1) { - for (int x = 0; x < W; x++) { + for (int X = 0; X < W; X++) { int b = (*p++ != transparent_index); if (*p++ != transparent_index) b |= 2; if (*p++ != transparent_index) b |= 4; @@ -241,12 +241,12 @@ int fl_draw_pixmap(const char*const* di, int x, int y, Fl_Color bg) { *bitmap++ = b; } } else { - for (int x = 0; x < W; x++) { + for (int X = 0; X < W; X++) { int b = 0; for (int i = 0; i < 8; i++) { - int index = *p++; - index = (index<<8) | (*p++); - if (index != transparent_index) b |= (1<<i); + int ind = *p++; + ind = (ind<<8) | (*p++); + if (ind != transparent_index) b |= (1<<i); } *bitmap++ = b; } @@ -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.9 2002/05/25 13:38:25 easysw Exp $". +// End of "$Id: fl_draw_pixmap.cxx,v 1.4.2.8.2.10 2002/08/09 03:17:30 easysw Exp $". // |
