changeset 2617:2f322910dec5

Comments.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 28 Nov 2023 19:20:53 +0200
parents def52341ee5f
children 1b62395e2bb7
files tools/64vw.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/64vw.c	Tue Nov 28 17:39:05 2023 +0200
+++ b/tools/64vw.c	Tue Nov 28 19:20:53 2023 +0200
@@ -425,7 +425,7 @@
     }
     flagInitSDL = true;
 
-    // Open window
+    // Create window
     if ((window = SDL_CreateWindow(dmProgName,
         SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
         optSetWindowWidth, optSetWindowHeight,
@@ -590,6 +590,7 @@
             // Convert image to surface (we are lazy and ugly)
             if (dmConvertC64ImageToSDLSurface(&bimage, &surf, cimage, &optSpec) == DMERR_OK)
             {
+                // Create title string
                 title = dm_strdup_printf("%s - [%d / %d] %s (%dx%d @ %s)",
                     dmProgName,
                     currIndex + 1,
@@ -598,6 +599,7 @@
                     cimage->fmt->width, cimage->fmt->height,
                     fmt->name);
 
+                // Output some information to stdout if we are verbose
                 if (dmVerbosity >= 1)
                 {
                     fprintf(stdout, "\n%s\n", filename);
@@ -644,7 +646,7 @@
 
         if (flagRedraw)
         {
-            // Calculate the render size
+            // Calculate the image render size
             SDL_Rect dstRect;
             dstRect.w = (((float) currWindowHeight) * D64_SCR_FULL_WIDTH / D64_SCR_FULL_HEIGHT / D64_SCR_PAR_XY);
             dstRect.h = currWindowHeight;