Skip to content

Commit

Permalink
Fixed alignment of th Stripes messages
Browse files Browse the repository at this point in the history
Fixed alignment of th Stripes messages
  • Loading branch information
bmorcelli authored May 9, 2024
1 parent 67b9acc commit 070fa46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ void displayRedStripe(String text, uint16_t fgcolor, uint16_t bgcolor) {
menu_op.setTextColor(fgcolor,bgcolor);
if(size==FM) {
menu_op.setTextSize(FM);
menu_op.setCursor(WIDTH/2 - FM*3*text.length(), 5);
menu_op.setCursor(menu_op.width()/2 - FM*3*text.length(), 5);
}
else {
menu_op.setTextSize(FP);
menu_op.setCursor(WIDTH/2 - FP*3*text.length(), 5);
menu_op.setCursor(menu_op.width()/2 - FP*3*text.length(), 5);
}
menu_op.println(text);
menu_op.pushSprite(10,HEIGHT/2 - 13);
Expand Down

0 comments on commit 070fa46

Please sign in to comment.