]> git.tnoah.ca Git - lora-radio.git/commitdiff
Fix dotted outline for stat screen on OLED
authorjacob.eva <x00010@disroot.org>
Thu, 4 Jul 2024 17:12:25 +0000 (18:12 +0100)
committerjacob.eva <x00010@disroot.org>
Thu, 4 Jul 2024 17:12:25 +0000 (18:12 +0100)
Display.h
Graphics.h

index 2d60f7283a5d57472bcb892d7ba42c88fb7ac1c3..aa8cf3b10fe405777b42a6516ab619de0165143c 100644 (file)
--- 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;
index 3b81690428a8ff8e8397d53150d195d9c5a21916..049beb079e730e65406b7814e52cf84714fee7c0 100644 (file)
@@ -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