Closes #16760 Spell lists do not display correctly.
@@ -1501,7 +1501,6 @@ | ||
1501 | 1501 | byte color; |
1502 | 1502 | int w, h; |
1503 | 1503 | |
1504 | - | |
1505 | 1504 | /* Obtain the size */ |
1506 | 1505 | (void)Term_get_size(&w, &h); |
1507 | 1506 |
@@ -568,8 +568,8 @@ | ||
568 | 568 | col = 4; |
569 | 569 | |
570 | 570 | /* Title the list */ |
571 | - prt("", 0, 1); | |
572 | - put_str("Name", col + 3, 1); | |
571 | + prt("", 1, 0); | |
572 | + put_str("Name", 1, col + 3); | |
573 | 573 | for (i = 0; i < count; i++) /* Dump the spells */ |
574 | 574 | { |
575 | 575 | s_ptr = &s_info[index[i]]; /* Access the spell */ |
@@ -582,7 +582,7 @@ | ||
582 | 582 | |
583 | 583 | /* TODO Consider supporting show_spell_numbers from Angband/64 */ |
584 | 584 | /* TODO Consider supporting cheat_spell_info and cheat_any from Angband/64 */ |
585 | - put_str("Lv Ma Fail", col + 27, 1); | |
585 | + put_str("Lv Ma Fail", 1, col + 27); | |
586 | 586 | |
587 | 587 | my_strcpy(info,"",sizeof(info)); |
588 | 588 | my_strcpy(info,"",sizeof(info)); |
@@ -622,12 +622,12 @@ | ||
622 | 622 | strnfmt(out_val, sizeof(out_val), "%c) %-23s%3d %2d", |
623 | 623 | I2A(i), s_name + s_ptr->name, s_ptr->level, spell_mana(index[i])); |
624 | 624 | } |
625 | - prt("", 0, 2+i); /* this clears the line */ | |
626 | - c_put_str(color,out_val,col,2+i); | |
625 | + prt("", 2+i, 0); /* this clears the line */ | |
626 | + c_put_str(color,out_val,2+i,col); | |
627 | 627 | } |
628 | 628 | |
629 | 629 | /* Clear the bottom line */ |
630 | - prt("", 0, 2 + i); | |
630 | + prt("", 2 + i, 0); | |
631 | 631 | } |
632 | 632 | |
633 | 633 | /* |