From f14b97961ef382e6ad5f04f67cdd176f3a070866 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:43:09 -0600 Subject: [PATCH] EMUF font variant --- src/core/osd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/osd.c b/src/core/osd.c index 4ac5027f..239f3bcf 100644 --- a/src/core/osd.c +++ b/src/core/osd.c @@ -42,6 +42,7 @@ typedef enum { FC_VARIANT_UNKNOWN = 0, FC_VARIANT_ARDU, FC_VARIANT_BTFL, + FC_VARIANT_EMUF, FC_VARIANT_INAV, FC_VARIANT_QUIC } fc_variant_t; @@ -343,6 +344,7 @@ static void osd_object_create_label(uint8_t fhd, lv_obj_t **obj, char *text, set switch (g_fc_variant_type) { case FC_VARIANT_ARDU: case FC_VARIANT_BTFL: + case FC_VARIANT_EMUF: case FC_VARIANT_INAV: lv_obj_set_style_text_font(*obj, &conthrax_26, 0); break; @@ -932,6 +934,8 @@ void load_fc_osd_font(uint8_t fhd) { g_fc_variant_type = FC_VARIANT_ARDU; } else if (0 == strncmp(fc_variant, "BTFL", sizeof(fc_variant))) { g_fc_variant_type = FC_VARIANT_BTFL; + } else if (0 == strncmp(fc_variant, "EMUF", sizeof(fc_variant))) { + g_fc_variant_type = FC_VARIANT_EMUF; } else if (0 == strncmp(fc_variant, "INAV", sizeof(fc_variant))) { g_fc_variant_type = FC_VARIANT_INAV; } else if (0 == strncmp(fc_variant, "QUIC", sizeof(fc_variant))) { @@ -944,6 +948,7 @@ void load_fc_osd_font(uint8_t fhd) { switch (g_fc_variant_type) { case FC_VARIANT_ARDU: case FC_VARIANT_BTFL: + case FC_VARIANT_EMUF: case FC_VARIANT_INAV: clock_format_offsets[OSD_RESOURCE_720] = 150; clock_format_offsets[OSD_RESOURCE_1080] = 100;