Skip to content

Commit

Permalink
Merge branch 'v09' of https://github.com/kbr-net/sdrive-max into v09
Browse files Browse the repository at this point in the history
  • Loading branch information
whizzosoftware committed Sep 3, 2018
2 parents 466de8f + b8b46dd commit e461948
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions SDrive.c
Expand Up @@ -653,13 +653,21 @@ int main(void)
}
//scrolling long filename
if (tft.cfg.scroll && actual_page == PAGE_FILE && file_selected != -1 && strlen(atari_sector_buffer) > 19) {
if (select_file_counter > 20000) {
sfp++;
Draw_Rectangle(5,10,tft.width-1,26,1,SQUARE,Black,Black);
print_strn(5, 10, 2, Yellow, Black, sfp, 19);
select_file_counter = 0;
if (strlen(sfp) == 19)
sfp = atari_sector_buffer-1;
if (select_file_counter == 20000) {
if (sfp == atari_sector_buffer) {
select_file_counter = 20001;
sfp++;
}
else {
sfp++;
Draw_Rectangle(5,10,tft.width-1,26,1,SQUARE,Black,Black);
print_strn(5, 10, 2, Yellow, Black, sfp, 19);
select_file_counter = 0;
if (strlen(sfp) == 19) {
sfp = atari_sector_buffer-1;
select_file_counter = 20001;
}
}
}
else
select_file_counter++;
Expand Down

0 comments on commit e461948

Please sign in to comment.