font.c: Fix regression introduced in a749a95

Index was increased by 2 instead of by 1
in each loop iteration

Change-Id: I58d6957d46880f4207421b79c3ea6aa6660fbde4
This commit is contained in:
Christian Soffke 2023-07-08 17:51:19 +02:00
parent 102dc49ed9
commit e5ecff3db7

View file

@ -350,8 +350,6 @@ static int find_font_index(const char* path)
logf("%s Found id: [%d], %s", __func__, index, path); logf("%s Found id: [%d], %s", __func__, index, path);
return index; return index;
} }
index++;
} }
logf("%s %s Not found using id: [%d], FONT_SYSFIXED", logf("%s %s Not found using id: [%d], FONT_SYSFIXED",
__func__, path, FONT_SYSFIXED); __func__, path, FONT_SYSFIXED);