Skip to content

Commit

Permalink
Merge pull request #34 from ThomasFarstrike/fix_qr_too_small_when_tex…
Browse files Browse the repository at this point in the history
…t_size_increased

Fix QR code too small when text_size increased
  • Loading branch information
chill117 authored Oct 6, 2022
2 parents 3a00449 + 38fbb55 commit 01ec962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen/tft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace {
display.setTextFont(text_font);
display.setTextSize(text_size);
int16_t tbw = display.textWidth(text);
int16_t tbh = display.fontHeight() * text_size;
int16_t tbh = display.fontHeight(); // no need to multiply by text_size because TFT_eSPI does this automatically after setTextSize() is called
int16_t box_x = x;
int16_t box_y = y;
if (center) {
Expand Down

0 comments on commit 01ec962

Please sign in to comment.