make sure screen pointers are initialiased before messing with the cursor
This commit is contained in:
1 parent
3cc93b715c
commit
2070b428ed
1 file changed
+4
@@ -36,6 +36,8 @@ blink_cursor:
|
|||||||
lda cursor_is_visible
|
lda cursor_is_visible
|
||||||
bne undraw_cursor
|
bne undraw_cursor
|
||||||
draw_cursor:
|
draw_cursor:
|
||||||
|
jsr calculate_screen_line_pointer
|
||||||
|
|
||||||
ldy current_screen_x
|
ldy current_screen_x
|
||||||
lda (current_screen_line_ptr),y
|
lda (current_screen_line_ptr),y
|
||||||
sta cursor_saved_character
|
sta cursor_saved_character
|
||||||
@@ -52,6 +54,8 @@ draw_cursor:
|
|||||||
jmp reset_blink_timer
|
jmp reset_blink_timer
|
||||||
|
|
||||||
undraw_cursor:
|
undraw_cursor:
|
||||||
|
jsr calculate_screen_line_pointer
|
||||||
|
|
||||||
lda cursor_saved_character
|
lda cursor_saved_character
|
||||||
ldy current_screen_x
|
ldy current_screen_x
|
||||||
sta (current_screen_line_ptr),y
|
sta (current_screen_line_ptr),y
|
||||||
|
|||||||
Reference in new issue
Block a user