changeset 1411:a9afb2ad39cb

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Nov 2017 03:51:48 +0200
parents c29f1cea4a1c
children c386d287fa1e
files tools/lib64gfx.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Sun Nov 05 02:38:36 2017 +0200
+++ b/tools/lib64gfx.c	Sun Nov 05 03:51:48 2017 +0200
@@ -1375,8 +1375,6 @@
 // a indexed/paletted bitmap image.
 int dmC64ConvertGenericBMP2Image(DMImage *dst, const DMC64Image *src, const DMC64ImageFormat *fmt)
 {
-    Uint8 *dp = dst->data;
-    int yc;
     DMC64GetPixelFunc getPixel;
 
     // Sanity check arguments
@@ -1400,7 +1398,8 @@
         rwidth /= 2;
 
     // Perform conversion
-    for (yc = 0; yc < src->height; yc++)
+    Uint8 *dp = dst->data;
+    for (int yc = 0; yc < src->height; yc++)
     {
         Uint8 *d = dp;
         const int y = yc / 8, yb = yc & 7;