proper positioning works now

This commit is contained in:
Priec
2025-11-14 18:50:57 +01:00
parent cda395d6b9
commit 9170524d33
4 changed files with 10 additions and 12 deletions

View File

@@ -11,8 +11,8 @@ void draw_mask(const char *unused_filename, int shift, const char *text) {
// Terminal clear + home
printf("\033[2J\033[H");
for (int i = 0; i < view_height && i < BACKGROUND_DARK_INVERTED_LINES; i++) {
const char *row = BACKGROUND_DARK_INVERTED[i];
for (int i = 0; i < view_height && i < VIEW_HEIGHT; i++) {
const char *row = BACKGROUND_MASK[i];
int width = strlen(row);
if (width == 0) {
printf("\r\n");