Basic utf8 support for B&W radios
This commit is contained in:
committed by
Raphael Coeffic
parent
86152da85d
commit
30e3ac3399
@@ -18,6 +18,7 @@
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
/* -*- coding: utf-8 -*- */
|
||||
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QDebug>
|
||||
@@ -267,6 +268,45 @@ TEST(Lcd, Dblsize)
|
||||
EXPECT_TRUE(checkScreenshot("dblsize"));
|
||||
}
|
||||
|
||||
#define TEST_CHAR_RIGHT "\302\200"
|
||||
#define TEST_CHAR_LEFT "\302\201"
|
||||
#define TEST_CHAR_UP "\302\202"
|
||||
#define TEST_CHAR_DOWN "\302\203"
|
||||
|
||||
#define TEST_CHAR_DELTA "\302\210"
|
||||
#define TEST_CHAR_STICK "\302\211"
|
||||
#define TEST_CHAR_POT "\302\212"
|
||||
#define TEST_CHAR_SLIDER "\302\213"
|
||||
#define TEST_CHAR_SWITCH "\302\214"
|
||||
#define TEST_CHAR_TRIM "\302\215"
|
||||
#define TEST_CHAR_INPUT "\302\216"
|
||||
#define TEST_CHAR_FUNCTION "\302\217"
|
||||
#define TEST_CHAR_CYC "\302\220"
|
||||
#define TEST_CHAR_TRAINER "\302\221"
|
||||
#define TEST_CHAR_CHANNEL "\302\222"
|
||||
#define TEST_CHAR_TELEMETRY "\302\223"
|
||||
#define TEST_CHAR_LUA "\302\224"
|
||||
|
||||
//#define EXTRA_TEST TEST_CHAR_RIGHT TEST_CHAR_LEFT TEST_CHAR_UP TEST_CHAR_DOWN
|
||||
#define EXTRA_TEST TEST_CHAR_DELTA TEST_CHAR_STICK TEST_CHAR_POT TEST_CHAR_SLIDER \
|
||||
TEST_CHAR_SWITCH TEST_CHAR_TRIM TEST_CHAR_INPUT
|
||||
|
||||
TEST(Lcd, Extra_chars)
|
||||
{
|
||||
lcdClear();
|
||||
lcdDrawText(0, 10, EXTRA_TEST);
|
||||
EXPECT_TRUE(checkScreenshot("extra_chars"));
|
||||
}
|
||||
|
||||
#if defined(TRANSLATIONS_FR)
|
||||
TEST(Lcd, fr_chars)
|
||||
{
|
||||
lcdClear();
|
||||
lcdDrawText(0, 10, u8"éèàîç");
|
||||
EXPECT_TRUE(checkScreenshot("fr_chars"));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS) && LCD_W >= 212
|
||||
TEST(Lcd, DrawSwitch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user