From cbc8d209a316567d59786abae10f9708a8fdc543 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 16 Jun 2017 19:05:12 +0100 Subject: [PATCH] Remove 1 pixel border on FreeFont background This caused problems when the font is rendered at screen edges. --- TFT_eSPI.cpp | 5 +++-- library.json | 2 +- library.properties | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 33003e0..d981239 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -3241,8 +3241,9 @@ int16_t TFT_eSPI::drawString(const char *string, int poX, int poY, int font) //if (xo < 0) cwidth -= xo; // Add 1 pixel of padding all round - cheight +=2; - fillRect(poX+xo-1, poY - 1 - glyph_ab * textsize, cwidth+2, cheight, textbgcolor); + //cheight +=2; + //fillRect(poX+xo-1, poY - 1 - glyph_ab * textsize, cwidth+2, cheight, textbgcolor); + fillRect(poX+xo, poY - glyph_ab * textsize, cwidth, cheight, textbgcolor); padding -=100; } #endif diff --git a/library.json b/library.json index 0c8bc6c..2be6006 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "0.16.12", + "version": "0.16.13", "keywords": "TFT, ESP8266, NodeMCU, ESP32, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486", "description": "A TFT SPI graphics library for ESP8266", "repository": diff --git a/library.properties b/library.properties index ef38129..2930c7c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=0.16.12 +version=0.16.13 author=Bodmer maintainer=Bodmer sentence=A fast TFT library for ESP8266 processors and the Arduino IDE