changeset 1572:4643cd757c0b

Try to make the window title more informative.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 May 2018 08:23:58 +0300
parents ad771e94af25
children 86373ac0861a
files tools/64vw.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/64vw.c	Sun May 13 08:23:34 2018 +0300
+++ b/tools/64vw.c	Sun May 13 08:23:58 2018 +0300
@@ -410,10 +410,13 @@
 
             if (dmDecodeC64Image(cimage, fmt, surf) == DMERR_OK)
             {
-                title = dm_strdup_printf("%s - %s (%d x %d) [%d / %d]",
-                    dmProgName, filename,
+                title = dm_strdup_printf("%s - [%d / %d] %s (%dx%d @ %s)",
+                    dmProgName,
+                    currIndex + 1,
+                    noptFilenames2,
+                    filename,
                     cimage->width, cimage->height,
-                    currIndex + 1, noptFilenames2);
+                    fmt->name);
 
                 if (dmVerbosity >= 1)
                 {
@@ -459,7 +462,6 @@
 
         if (needRedraw)
         {
-            //SDL_RenderSetLogicalSize(renderer, surf->w, surf->h);
             SDL_RenderClear(renderer);
             SDL_RenderCopy(renderer, texture, NULL, NULL);
             SDL_RenderPresent(renderer);