# HG changeset patch # User Matti Hamalainen # Date 1509846708 -7200 # Node ID a9afb2ad39cb43c2efc83d6113877e07a43228a7 # Parent c29f1cea4a1cd8daf6ffc559aec5eb5d43d8c35b Cleanups. diff -r c29f1cea4a1c -r a9afb2ad39cb tools/lib64gfx.c --- 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;