Skip to content

Commit b94ac0b

Browse files
EYESPI_Test.ino: fix canvas height
Canvas was wrong size on narrow screens. Fixed!
1 parent 5373f4f commit b94ac0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

EYESPI/Arduino/Color/EYESPI_Test/EYESPI_Test.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ void show_canvas() {
596596
// and descenders on digits, and in some locales a comma (extending below
597597
// the baseline) is the decimal separator. Feed ALL the numeric chars into
598598
// getTextBounds() for a cumulative height:
599+
display.setTextWrap(false); // Keep on one line
599600
display.getTextBounds(F("0123456789.,-"), 0, 0, &x, &y, &w, &h);
600601

601602
// Now declare a GFXcanvas16 object based on the computed width & height:

0 commit comments

Comments
 (0)