changeset 1361:00f47a678482

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 22 Sep 2017 16:24:53 +0300
parents fcaf04cb0830
children 7bc67ba68904
files tools/lib64gfx.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Fri Sep 22 15:58:32 2017 +0300
+++ b/tools/lib64gfx.c	Fri Sep 22 16:24:53 2017 +0300
@@ -14,7 +14,6 @@
 
 DMC64Image * dmC64ImageAlloc(int width, int height, int ch_width, int ch_height)
 {
-    int i;
     DMC64Image *img = dmMalloc0(sizeof(DMC64Image));
 
     if (img == NULL)
@@ -25,7 +24,7 @@
     img->ch_width  = ch_width;
     img->ch_height = ch_height;
 
-    for (i = 0; i < C64_SCR_MAX_BANK; i++)
+    for (int i = 0; i < C64_SCR_MAX_BANK; i++)
     {
         if ((img->color[i] = dmMalloc0(ch_width * ch_height)) == NULL)
             goto err;
@@ -52,8 +51,7 @@
 {
     if (img != NULL)
     {
-        int i;
-        for (i = 0; i < C64_SCR_MAX_BANK; i++)
+        for (int i = 0; i < C64_SCR_MAX_BANK; i++)
         {
             dmFree(img->color[i]);
             dmFree(img->bitmap[i]);
@@ -1215,7 +1213,8 @@
         return DMERR_INVALID_DATA;
 
     // Allocate memory
-    if ((*img = dmC64ImageAlloc((*fmt)->width, (*fmt)->height,
+    if ((*img = dmC64ImageAlloc(
+        (*fmt)->width, (*fmt)->height,
         (*fmt)->ch_width, (*fmt)->ch_height)) == NULL)
         return DMERR_MALLOC;