# HG changeset patch # User Matti Hamalainen # Date 1701192053 -7200 # Node ID 2f322910dec581d1b12766c35cb32bc6a2025f8b # Parent def52341ee5f9573a78a7ad6cffea1560ee95249 Comments. diff -r def52341ee5f -r 2f322910dec5 tools/64vw.c --- 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;