mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
fix(ui): lines and outlines follow the pixel scale on the 4.26" e-ink, opening a conversation no longer re-anchors on its second frame
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1083,8 +1083,8 @@ public:
|
||||
int tw = d.getTextWidth(t);
|
||||
int tx = (w - tw) / 2, mid = y + lh / 2;
|
||||
d.setColor(DisplayDriver::LIGHT);
|
||||
d.fillRect(1, mid, tx - 4, 1);
|
||||
d.fillRect(tx + tw + 3, mid, w - 1 - (tx + tw + 3), 1);
|
||||
d.fillRect(1, mid, tx - 4, d.sepH());
|
||||
d.fillRect(tx + tw + 3, mid, w - 1 - (tx + tw + 3), d.sepH());
|
||||
d.setCursor(tx, y + 1);
|
||||
d.print(t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user