From e2b5809990d71f549adb023dc55d70bed5c4d5f0 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 4 Sep 2020 01:19:42 +0100 Subject: [PATCH 1/2] Remove another explicit array size --- src/Caret.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Caret.cpp b/src/Caret.cpp index 5a91c728..f0cd9995 100644 --- a/src/Caret.cpp +++ b/src/Caret.cpp @@ -601,7 +601,7 @@ void ActCaret17(CARET *crt) } typedef void (*CARETFUNCTION)(CARET*); -CARETFUNCTION gpCaretFuncTbl[18] = +CARETFUNCTION gpCaretFuncTbl[] = { ActCaret00, ActCaret01, From 92d50ae187405170dcff6c3c9ef24b39e1be5bd2 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 4 Sep 2020 02:35:31 +0100 Subject: [PATCH 2/2] Comment on a weird-ass Sleep call --- src/Organya.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Organya.cpp b/src/Organya.cpp index d60035bb..4d4ff1cb 100644 --- a/src/Organya.cpp +++ b/src/Organya.cpp @@ -1041,6 +1041,11 @@ void StopOrganyaMusic(void) memset(key_on, 0, sizeof(key_on)); memset(key_twin, 0, sizeof(key_twin)); + // Put the main thread to sleep for 100 milliseconds... but why? + // Really, what's the point? All this does is cause an annoying + // stutter when a new song loads. + // I'd guess it avoids a race-condition with the Organya thread, + // but the earlier QuitMMTimer call already disables it. Sleep(100); }