From 0cc26f4980fed0a7e304e8cbcf45cd5aca601096 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Thu, 4 Jul 2024 18:12:25 +0100 Subject: [PATCH] Fix dotted outline for stat screen on OLED --- Display.h | 2 +- Graphics.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Display.h b/Display.h index 2d60f72..aa8cf3b 100644 --- a/Display.h +++ b/Display.h @@ -374,7 +374,7 @@ void draw_lora_icon(RadioInterface* radio, int px, int py) { if (radio_online) { #if DISPLAY == OLED if (online_interface_list[interface_page] == radio->getIndex()) { - stat_area.drawBitmap(px - 1, py, bm_dot_sqr, 18, 18, SSD1306_WHITE, SSD1306_BLACK); + stat_area.drawBitmap(px - 1, py-1, bm_dot_sqr, 18, 19, SSD1306_WHITE, SSD1306_BLACK); // redraw stat area on next refresh stat_area_initialised = false; diff --git a/Graphics.h b/Graphics.h index 3b81690..049beb0 100644 --- a/Graphics.h +++ b/Graphics.h @@ -402,10 +402,10 @@ const unsigned char bm_n_uh [] PROGMEM = { }; const unsigned char bm_dot_sqr [] PROGMEM = { - 0xdb, 0x36, 0xc0, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x40, 0x00, - 0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, - 0x40, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, - 0x80, 0x00, 0x40, 0xdb, 0x36, 0xc0 + 0xaa, 0xd5, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, + 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, + 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, + 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0xaa, 0xd5, 0x40 }; #elif DISP_H == 122