changeset 2464:7722c150d6de

Add few comments.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 16 Apr 2020 10:36:45 +0300
parents 45d863deb00b
children 63dd0a611586
files tools/gfxconv.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Thu Apr 16 09:11:12 2020 +0300
+++ b/tools/gfxconv.c	Thu Apr 16 10:36:45 2020 +0300
@@ -2229,17 +2229,20 @@
             outFormat.name, outFormat.fext);
     }
 
-
     // Check if we need to scale the output
     if (optScaleMode != SCALE_SET)
     {
+        // Default to 1:1 scalefactors
         int scaleX = 1, scaleY = 1;
+
+        // For C64 formats, use the aspect ratios from them
         if (inC64Fmt != NULL)
         {
             scaleX = inC64Fmt->format->aspectX;
             scaleY = inC64Fmt->format->aspectY;
         }
 
+        // Then, depending on the scaling mode, apply scale
         switch (optScaleMode)
         {
             case SCALE_AUTO: