Fix dotted outline for stat screen on OLED

This commit is contained in:
jacob.eva 2024-07-04 18:12:25 +01:00
parent 62270a9ced
commit 0cc26f4980
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E
2 changed files with 5 additions and 5 deletions

View File

@ -374,7 +374,7 @@ void draw_lora_icon(RadioInterface* radio, int px, int py) {
if (radio_online) { if (radio_online) {
#if DISPLAY == OLED #if DISPLAY == OLED
if (online_interface_list[interface_page] == radio->getIndex()) { 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 // redraw stat area on next refresh
stat_area_initialised = false; stat_area_initialised = false;

View File

@ -402,10 +402,10 @@ const unsigned char bm_n_uh [] PROGMEM = {
}; };
const unsigned char bm_dot_sqr [] PROGMEM = { const unsigned char bm_dot_sqr [] PROGMEM = {
0xdb, 0x36, 0xc0, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x40, 0x00, 0xaa, 0xd5, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00,
0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00,
0x40, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00,
0x80, 0x00, 0x40, 0xdb, 0x36, 0xc0 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0xaa, 0xd5, 0x40
}; };
#elif DISP_H == 122 #elif DISP_H == 122