From 8e39de03682112143ddb0665f126fd970280f462 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 29 Jun 2018 22:11:10 +0200 Subject: [PATCH] fix horus LCD tests --- radio/src/tests/lcd_480x272.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radio/src/tests/lcd_480x272.cpp b/radio/src/tests/lcd_480x272.cpp index 1cd8c2666..486b601f2 100644 --- a/radio/src/tests/lcd_480x272.cpp +++ b/radio/src/tests/lcd_480x272.cpp @@ -82,6 +82,7 @@ bool checkScreenshot_480x272(const QString & test) TEST(Lcd_480x272, vline) { + loadFonts(); lcd->clear(TEXT_BGCOLOR); for (int x=0; x<100; x+=2) { lcdDrawSolidVerticalLine(x, x/2, 12, TEXT_COLOR); @@ -91,6 +92,7 @@ TEST(Lcd_480x272, vline) TEST(Lcd_480x272, primitives) { + loadFonts(); lcd->clear(TEXT_BGCOLOR); lcdDrawText(8, 8, "The quick brown fox jumps over the lazy dog", CURVE_AXIS_COLOR|NO_FONTCACHE); lcdDrawText(5, 5, "The quick brown fox jumps over the lazy dog", TEXT_COLOR|NO_FONTCACHE); @@ -118,6 +120,7 @@ TEST(Lcd_480x272, primitives) TEST(Lcd_480x272, transparency) { + loadFonts(); lcd->clear(TEXT_BGCOLOR); lcdDrawText(8, 8, "The quick brown fox jumps over the lazy dog", TEXT_COLOR|OPACITY(4)|NO_FONTCACHE); lcdDrawText(5, 5, "The quick brown fox jumps over the lazy dog", TEXT_COLOR|OPACITY(12)|NO_FONTCACHE); @@ -154,6 +157,7 @@ TEST(Lcd_480x272, transparency) TEST(Lcd_480x272, fonts) { + loadFonts(); loadFontCache(); lcd->clear(TEXT_BGCOLOR); @@ -171,4 +175,4 @@ TEST(Lcd_480x272, fonts) } -#endif \ No newline at end of file +#endif