shithub: ft²

Download patch

ref: 62c674336658b9b277a6e000c452c468f9b96bdf
parent: f71a1d5fc0085f357a6c5f12a72fad5926fc7ab5
author: Olav Sørensen <olav.sorensen@live.no>
date: Mon Nov 22 17:49:40 EST 2021

Minor cleanup

--- a/src/ft2_audio.c
+++ b/src/ft2_audio.c
@@ -974,7 +974,6 @@
 		bufferPosition += samplesToMix;
 		samplesLeft -= samplesToMix;
 		audio.tickSampleCounter64 -= (int64_t)samplesToMix << 32;
-
 	}
 
 	// normalize mix buffer and send to audio stream
--- a/src/ft2_checkboxes.c
+++ b/src/ft2_checkboxes.c
@@ -180,7 +180,7 @@
 
 	if (ui.sysReqShown)
 	{
-		// if a system request is open, only test the first three checkboxes (reserved)
+		// if a system request is open, only test the first checkbox (reserved)
 		start = 0;
 		end = 1;
 	}
--- a/src/ft2_sysreqs.c
+++ b/src/ft2_sysreqs.c
@@ -28,7 +28,7 @@
 	{ "OK", "","","","" },
 	{ "OK", "Cancel", "","","" },
 	{ "Yes", "No", "","","" },
-	{ "","","","","" }, // deprecated
+	{ "","","","","" }, // removed (TODO: Re-arrange and fix all sysreq call offsets...)
 	{ "All", "Song", "Instruments", "Cancel", "" },
 	{ "Read left", "Read right", "Convert", "", "" },
 	{ "OK", "","","","" },
--- a/src/ft2_video.c
+++ b/src/ft2_video.c
@@ -169,7 +169,7 @@
 
 	SDL_UpdateTexture(video.texture, NULL, video.frameBuffer, SCREEN_W * sizeof (int32_t));
 
-	// SDL2 bug on Windows (?): This function consumes ever-increasing memory if the program is minimized
+	// SDL 2.0.14 bug on Windows (?): This function consumes ever-increasing memory if the program is minimized
 	if (!minimized)
 		SDL_RenderClear(video.renderer);