# HG changeset patch # User Matti Hamalainen # Date 1530113786 -10800 # Node ID ade67127880695af8adcc07f3b03bcce25468ee7 # Parent 34ba8e2d2dd715df88fe97e58655abf04f2ca794 Cleanup. diff -r 34ba8e2d2dd7 -r ade671278806 tools/lib64gfx.c --- a/tools/lib64gfx.c Wed Jun 27 18:36:03 2018 +0300 +++ b/tools/lib64gfx.c Wed Jun 27 18:36:26 2018 +0300 @@ -1252,14 +1252,13 @@ Uint8 *d = dp; const int y = yc / 8, yb = yc & 7; const int scroffsy = y * src->chWidth; - int xc; if (src->type & D64_FMT_CHAR) { // Charmode conversion if ((src->type & D64_FMT_MC) == D64_FMT_HIRES) // Hi-res charmap - for (xc = 0; xc < rwidth; xc++) + for (int xc = 0; xc < rwidth; xc++) { const int x = xc / 8; const int scroffs = scroffsy + x; @@ -1273,7 +1272,7 @@ } else // Multicolor variants - for (xc = 0; xc < rwidth; xc++) + for (int xc = 0; xc < rwidth; xc++) { const int x = xc / 4; const int scroffs = scroffsy + x; @@ -1308,7 +1307,7 @@ if ((src->type & D64_FMT_MC) == D64_FMT_HIRES) // Hi-res bitmap - for (xc = 0; xc < rwidth; xc++) + for (int xc = 0; xc < rwidth; xc++) { const int x = xc / 8; const int scroffs = scroffsy + x; @@ -1319,7 +1318,7 @@ } else // Multicolor bitmap and variants - for (xc = 0; xc < rwidth; xc++) + for (int xc = 0; xc < rwidth; xc++) { const int x = xc / 4; const int scroffs = scroffsy + x;