changeset 1917:ade671278806

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 27 Jun 2018 18:36:26 +0300
parents 34ba8e2d2dd7
children ba88ff5e85ea
files tools/lib64gfx.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;