shithub: cstory

Download patch

ref: 2963977cf915952f66c14860baba41332bee1880
parent: 3eced7b3e419d6ecf16790dce8bc75cdd246a088
parent: 92d50ae187405170dcff6c3c9ef24b39e1be5bd2
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 3 22:36:19 EDT 2020

Merge branch 'accurate' into portable

--- a/src/Caret.cpp
+++ b/src/Caret.cpp
@@ -601,7 +601,7 @@
 }
 
 typedef void (*CARETFUNCTION)(CARET*);
-CARETFUNCTION gpCaretFuncTbl[18] =
+CARETFUNCTION gpCaretFuncTbl[] =
 {
 	ActCaret00,
 	ActCaret01,
--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -869,6 +869,11 @@
 	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.
 	Backend_Delay(100);
 }