changeset 1380:959b34402b81

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Sep 2017 19:49:25 +0300
parents 1e67dd44351e
children b6782b785457
files tools/lib64gfx.c tools/lib64gfx.h
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Sun Sep 24 19:49:03 2017 +0300
+++ b/tools/lib64gfx.c	Sun Sep 24 19:49:25 2017 +0300
@@ -433,12 +433,12 @@
     const DMC64Image *img, const int bmoffs, const int scroffs,
     const int vshift, const int vbitmap, const int raster)
 {
-    const int flibank = raster & 7;
+    const int vbank = raster & 7;
     switch ((img->bitmap[vbitmap][bmoffs] >> vshift) & 3)
     {
         case  0: return img->extraData[0][raster]; break;
-        case  1: return img->screen[flibank][scroffs] >> 4; break;
-        case  2: return img->screen[flibank][scroffs] & 15; break;
+        case  1: return img->screen[vbank][scroffs] >> 4; break;
+        case  2: return img->screen[vbank][scroffs] & 15; break;
         default: return img->color[0][scroffs] & 15; break;
     }
 }
@@ -744,9 +744,9 @@
 // is found, pointer to format description is set to *pfmt.
 int dmC64ProbeBMP(const Uint8 *buf, const size_t len, const DMC64ImageFormat **pfmt)
 {
-    int i, scoreMax = DM_PROBE_SCORE_FALSE, scoreIndex = -1;
+    int scoreMax = DM_PROBE_SCORE_FALSE, scoreIndex = -1;
 
-    for (i = 0; i < ndmC64ImageFormats; i++)
+    for (int i = 0; i < ndmC64ImageFormats; i++)
     {
         const DMC64ImageFormat *fmt = &dmC64ImageFormats[i];
         int score = DM_PROBE_SCORE_FALSE;
--- a/tools/lib64gfx.h	Sun Sep 24 19:49:03 2017 +0300
+++ b/tools/lib64gfx.h	Sun Sep 24 19:49:25 2017 +0300
@@ -65,8 +65,8 @@
 
 enum
 {
+    D64_ILACE_RES,
     D64_ILACE_COLOR,
-    D64_ILACE_RES,
 };