Fixed flashing text issue, moved textbox to window layer.

This commit is contained in:
2022-05-09 18:34:12 -07:00
parent 037f42e7ef
commit d6a06d851a
9 changed files with 37 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ void questionBoxSetOptions(char *title, char **options, uint8_t count) {
// Repurpose old array and draw arrow
spaces[0] = spriteFontTileFromChar(QUESTION_BOX_CURSOR);
spriteBufferBackgroundHigh(0x01, TEXTBOX_WIN_Y + 0x02, 1, 1, spaces);
spriteBufferWindow(0x01, TEXTBOX_Y + 0x02, 1, 1, spaces);
}
inline void questionBoxUpdate() {
@@ -76,9 +76,9 @@ inline void questionBoxUpdate() {
} else {
tiles[0] = spriteFontTileFromChar(' ');
}
spriteBufferBackgroundHigh(
spriteBufferWindow(
0x01 + ((i % 0x02) * QUESTION_BOX_QUESTION_SPACES),
TEXTBOX_WIN_Y + 0x02 + (i / 0x02),
TEXTBOX_Y + 0x02 + (i / 0x02),
1, 1,
tiles
);