ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit 62c674336658b9b277a6e000c452c468f9b96bdf
parent f71a1d5fc0085f357a6c5f12a72fad5926fc7ab5
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Mon, 22 Nov 2021 22:49:13 +0100

Minor cleanup

Diffstat:
Msrc/ft2_audio.c | 1-
Msrc/ft2_checkboxes.c | 2+-
Msrc/ft2_sysreqs.c | 2+-
Msrc/ft2_video.c | 2+-
4 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/ft2_audio.c b/src/ft2_audio.c @@ -974,7 +974,6 @@ static void SDLCALL audioCallback(void *userdata, Uint8 *stream, int len) bufferPosition += samplesToMix; samplesLeft -= samplesToMix; audio.tickSampleCounter64 -= (int64_t)samplesToMix << 32; - } // normalize mix buffer and send to audio stream diff --git a/src/ft2_checkboxes.c b/src/ft2_checkboxes.c @@ -180,7 +180,7 @@ bool testCheckBoxMouseDown(void) 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; } diff --git a/src/ft2_sysreqs.c b/src/ft2_sysreqs.c @@ -28,7 +28,7 @@ static char *buttonText[NUM_SYSREQ_TYPES][5] = { "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", "","","","" }, diff --git a/src/ft2_video.c b/src/ft2_video.c @@ -169,7 +169,7 @@ void flipFrame(void) 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);