changeset 2447:b0f25a42fd23

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 15 Apr 2020 13:29:28 +0300
parents 8193f62a541d
children cd5805f392a9
files tools/gfxconv.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Tue Mar 10 00:20:05 2020 +0200
+++ b/tools/gfxconv.c	Wed Apr 15 13:29:28 2020 +0300
@@ -269,9 +269,10 @@
 }
 
 
-/* Replace filename extension based on format pattern.
- * Usage: res = dm_strdup_fext(orig_filename, "foo_%s.cmp");
- */
+//
+// Replace filename extension based on format pattern.
+// Usage: res = dm_strdup_fext(orig_filename, "foo_%s.cmp");
+//
 char *dm_strdup_fext(const char *filename, const char *fmt)
 {
     char *result, *tmp, *fext;
@@ -1462,7 +1463,8 @@
 }
 
 
-int dmWriteImage(const char *filename, DMImage *pimage, DMImageWriteSpec *spec, const DMImageFormat *fmt, BOOL info)
+int dmWriteImage(const char *filename, DMImage *pimage,
+    DMImageWriteSpec *spec, const DMImageFormat *fmt, BOOL info)
 {
     int res = DMERR_OK;
 
@@ -2173,6 +2175,8 @@
             outFormat.name, outFormat.fext);
     }
 
+
+    // Check if we need to scale the output
     if (optScaleMode != SCALE_SET)
     {
         int scaleX = 1, scaleY = 1;