Fixed flashing text issue, moved textbox to window layer.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
Reference in New Issue
Block a user