changeset 1371:e6b13426b50a

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Sep 2017 15:11:49 +0300
parents 53358cc2f9ff
children b3e561e2209a
files tools/lib64gfx.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Sun Sep 24 13:18:24 2017 +0300
+++ b/tools/lib64gfx.c	Sun Sep 24 15:11:49 2017 +0300
@@ -822,7 +822,7 @@
                     case DC_D024: img->d024 = *src; break;
                     default:
                         return dmError(DMERR_INTERNAL,
-                            "Unhandled DT_COLOR_REG mode %d in ",
+                            "Unhandled DT_COLOR_REG mode %d in "
                             "op #%d, offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n",
                             op->size, i, op->offs, op->offs, op->bank, size, size, len, len);
                 }
@@ -839,7 +839,7 @@
                     case DC_D024: img->d024 = op->offs; break;
                     default:
                         return dmError(DMERR_INTERNAL,
-                            "Unhandled DT_COLOR_SET mode %d in ",
+                            "Unhandled DT_COLOR_SET mode %d in "
                             "op #%d, offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n",
                             op->size, i, op->offs, op->offs, op->bank, size, size, len, len);
                 }
@@ -853,9 +853,8 @@
 
                     case D64_CHCFG_LINEAR:
                         {
-                            int bank, offs;
-                            for (bank = 0; bank < C64_SCR_MAX_BANK; bank++)
-                            for (offs = 0; offs < fmt->ch_height * fmt->ch_width; offs++)
+                            for (int bank = 0; bank < C64_SCR_MAX_BANK; bank++)
+                            for (int offs = 0; offs < fmt->ch_height * fmt->ch_width; offs++)
                                 img->screen[bank][offs] = offs & 0xff;
                         }
                         break;