ref: 0ceb8955d2a4f31e752f2e9d04b1a1c0cc55bd8e
parent: 25369bcf67126de7ac1d1d9a93f8113c87d9d71f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 00:54:44 EST 2020
More-accurate Caret.cpp variable arrangement
--- a/src/Caret.cpp
+++ b/src/Caret.cpp
@@ -11,6 +11,27 @@
#define CARET_MAX 0x40
CARET gCrt[CARET_MAX];
+CARET_TABLE gCaretTable[18] = {
+ {0, 0},
+ {0x800, 0x800},
+ {0x1000, 0x1000},
+ {0x1000, 0x1000},
+ {0x1000, 0x1000},
+ {0x800, 0x800},
+ {0x1000, 0x1000},
+ {0x800, 0x800},
+ {0x1000, 0x1000},
+ {0x1000, 0x1000},
+ {0x3800, 0x1000},
+ {0x800, 0x800},
+ {0x2000, 0x2000},
+ {0x800, 0x800},
+ {0x2800, 0x2800},
+ {0x800, 0x800},
+ {0x2800, 0x800},
+ {0x6800, 0x800}
+};
+
void InitCaret(void)
{
memset(gCrt, 0, sizeof(gCrt));
@@ -467,28 +488,6 @@
else
crt->rect = rcLeft[1];
}
-
-// Tables
-CARET_TABLE gCaretTable[18] = {
- {0, 0},
- {0x800, 0x800},
- {0x1000, 0x1000},
- {0x1000, 0x1000},
- {0x1000, 0x1000},
- {0x800, 0x800},
- {0x1000, 0x1000},
- {0x800, 0x800},
- {0x1000, 0x1000},
- {0x1000, 0x1000},
- {0x3800, 0x1000},
- {0x800, 0x800},
- {0x2000, 0x2000},
- {0x800, 0x800},
- {0x2800, 0x2800},
- {0x800, 0x800},
- {0x2800, 0x800},
- {0x6800, 0x800}
-};
typedef void (*CARETFUNCTION)(CARET*);
CARETFUNCTION gpCaretFuncTbl[] =