changeset 919:5a4d68b86c5b

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Feb 2015 13:27:04 +0200
parents 59615f9c2ca9
children 9be156fa4b9d
files tools/lib64gfx.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Wed Feb 25 05:16:22 2015 +0200
+++ b/tools/lib64gfx.c	Wed Feb 25 13:27:04 2015 +0200
@@ -864,6 +864,7 @@
 int dmC64ConvertGenericBMP2Image(DMImage *dst, const DMC64Image *src, const BOOL doubleMC)
 {
     Uint8 *dp = dst->data;
+    const int wdivisor = doubleMC ? 2 : 1;
     int yc;
 
     // Sanity check arguments
@@ -900,8 +901,6 @@
         else
         {
             // Multicolor variants
-            const int wdivisor = doubleMC ? 2 : 1;
-
             for (xc = 0; xc < dst->width / wdivisor; xc++)
             {
                 const int x = xc / 4;
@@ -954,8 +953,6 @@
         else
         {
             // Multicolor variants
-            const int wdivisor = doubleMC ? 2 : 1;
-
             for (xc = 0; xc < dst->width / wdivisor; xc++)
             {
                 const int x = xc / 4;