some cz unicode in 5x7
This commit is contained in:
+8
-5
@@ -15,6 +15,7 @@
|
||||
#include "ufb/fb_text.h"
|
||||
#include "ufb/fb_7seg.h"
|
||||
#include "app_safety.h"
|
||||
#include "ufb/utf8.h"
|
||||
|
||||
#define MAX_TEMP 400
|
||||
|
||||
@@ -228,8 +229,10 @@ static void input_sound_effect()
|
||||
// ------------- home screen ----------------
|
||||
|
||||
static const char* main_menu_opts[] = {
|
||||
"Manual mode",
|
||||
"Calibration",
|
||||
"Ruční režim",
|
||||
"Kalibrace",
|
||||
"Programy",
|
||||
"Diagnostika",
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -308,8 +311,8 @@ static void screen_manual(GuiEvent event)
|
||||
// ---------------------------
|
||||
|
||||
static const char* manual_menu_opts[] = {
|
||||
"Close menu",
|
||||
"Exit manual",
|
||||
"Zrušit",
|
||||
"Hlavní menu",
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -357,7 +360,7 @@ static void screen_menu(GuiEvent event, const char **options, menu_callback_t cb
|
||||
case GUI_EVENT_SCREEN_TICK:
|
||||
// long text sliding animation
|
||||
if (tickNow - menu->change_time >= pdMS_TO_TICKS(500)) {
|
||||
const uint32_t textlen = strlen(options[menu->pos]) * 6;
|
||||
const uint32_t textlen = utf8_strlen(options[menu->pos]) * 6;
|
||||
if (textlen >= FBW - 2) {
|
||||
if (textlen - menu->text_slide > FBW - 1) {
|
||||
menu->text_slide += 1;
|
||||
|
||||
Reference in New Issue
Block a user