mirror of
https://github.com/bradgrantham/apple2a.git
synced 2024-05-31 19:41:36 +00:00
Fix HOME while in GR mode.
This commit is contained in:
parent
ad0f62f972
commit
c4613c6a08
14
runtime.c
14
runtime.c
|
@ -102,8 +102,18 @@ void clear_to_eol(void) {
|
||||||
* Clear the screen with non-reversed spaces.
|
* Clear the screen with non-reversed spaces.
|
||||||
*/
|
*/
|
||||||
void home(void) {
|
void home(void) {
|
||||||
memset(TEXT_PAGE1_BASE, CLEAR_CHAR, SCREEN_STRIDE*8);
|
if (g_gr_mode) {
|
||||||
move_cursor(0, 0);
|
int i;
|
||||||
|
|
||||||
|
for (i = MIXED_GRAPHICS_HEIGHT; i < SCREEN_HEIGHT; i++) {
|
||||||
|
memset(screen_pos(0, i), CLEAR_CHAR, SCREEN_WIDTH);
|
||||||
|
}
|
||||||
|
|
||||||
|
move_cursor(0, MIXED_GRAPHICS_HEIGHT);
|
||||||
|
} else {
|
||||||
|
memset(TEXT_PAGE1_BASE, CLEAR_CHAR, SCREEN_STRIDE*8);
|
||||||
|
move_cursor(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user