6
6
#include " UIRenderer.h"
7
7
#include " gps/GeoCoord.h"
8
8
#include " gps/RTC.h" // for getTime() function
9
+ #include " graphics/BRC.h"
9
10
#include " graphics/ScreenFonts.h"
10
11
#include " graphics/SharedUIDisplay.h"
11
12
#include " graphics/images.h"
12
- #include " graphics/BRC.h"
13
13
#include " meshUtils.h"
14
14
#include < algorithm>
15
15
@@ -341,7 +341,6 @@ void drawEntryCompass(OLEDDisplay *display, meshtastic_NodeInfoLite *node, int16
341
341
}
342
342
}
343
343
344
-
345
344
void drawEntryBRC (OLEDDisplay *display, meshtastic_NodeInfoLite *node, int16_t x, int16_t y, int columnWidth)
346
345
{
347
346
bool isLeftCol = (x < SCREEN_WIDTH / 2 );
@@ -360,7 +359,6 @@ void drawEntryBRC(OLEDDisplay *display, meshtastic_NodeInfoLite *node, int16_t x
360
359
auto nameWidth = display->getStringWidth (" WWWW" ); // Fixed width so they are aligned.
361
360
display->drawString (xText + nameWidth, y, buf);
362
361
363
-
364
362
if (node->is_favorite ) {
365
363
if (isHighResolution) {
366
364
drawScaledXBitmap16x16 (x, y + 6 , smallbulletpoint_width, smallbulletpoint_height, smallbulletpoint, display);
@@ -442,7 +440,7 @@ void drawLastSeenExtra(OLEDDisplay *display, meshtastic_NodeInfoLite *node, int1
442
440
int rightEdge = x + columnWidth - timeOffset;
443
441
if (timeStr[strlen (timeStr) - 1 ] == ' m' ) // Fix the fact that our fonts don't line up well all the time
444
442
rightEdge -= 1 ;
445
- // display->setTextAlignment(TEXT_ALIGN_RIGHT);
443
+ // display->setTextAlignment(TEXT_ALIGN_RIGHT);
446
444
int textWidth = display->getStringWidth (timeStr);
447
445
display->drawString (rightEdge - textWidth, y, timeStr);
448
446
}
@@ -452,7 +450,8 @@ void drawLastSeenExtra(OLEDDisplay *display, meshtastic_NodeInfoLite *node, int1
452
450
// =============================
453
451
454
452
void drawNodeListScreen (OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y, const char *title,
455
- EntryRenderer renderer, NodeExtrasRenderer extras, float heading, double lat, double lon, int totalColumns)
453
+ EntryRenderer renderer, NodeExtrasRenderer extras, float heading, double lat, double lon,
454
+ int totalColumns)
456
455
{
457
456
const int COMMON_HEADER_HEIGHT = FONT_HEIGHT_SMALL - 1 ;
458
457
const int rowYOffset = FONT_HEIGHT_SMALL - 3 ;
0 commit comments