summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-07-08 17:51:19 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-07-08 17:51:19 +0200
commite5ecff3db776447417f501630c0af4f285277735 (patch)
treef40801aa86448e40a055649fbfdee1ff6df797d6
parent102dc49ed9d1e81fe3920ea32260bf1bfa799fc0 (diff)
downloadrockbox-e5ecff3db776447417f501630c0af4f285277735.tar.gz
rockbox-e5ecff3db776447417f501630c0af4f285277735.zip
font.c: Fix regression introduced in a749a95
Index was increased by 2 instead of by 1 in each loop iteration Change-Id: I58d6957d46880f4207421b79c3ea6aa6660fbde4
-rw-r--r--firmware/font.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 01f187df45..1644201f67 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -350,8 +350,6 @@ static int find_font_index(const char* path)
350 logf("%s Found id: [%d], %s", __func__, index, path); 350 logf("%s Found id: [%d], %s", __func__, index, path);
351 return index; 351 return index;
352 } 352 }
353
354 index++;
355 } 353 }
356 logf("%s %s Not found using id: [%d], FONT_SYSFIXED", 354 logf("%s %s Not found using id: [%d], FONT_SYSFIXED",
357 __func__, path, FONT_SYSFIXED); 355 __func__, path, FONT_SYSFIXED);