More-accurate Caret.cpp variable arrangement
This commit is contained in:
parent
25369bcf67
commit
0ceb8955d2
1 changed files with 21 additions and 22 deletions
|
@ -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));
|
||||
|
@ -468,28 +489,6 @@ void ActCaret17(CARET *crt)
|
|||
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[] =
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue