From da2239f4c17125dff7c4fee7f4fa41590ae08218 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 20 May 2019 12:35:17 +0100 Subject: [PATCH] ESP8266 compiler compatibility update #361 --- Extensions/Sprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Extensions/Sprite.cpp b/Extensions/Sprite.cpp index f389141..cadd111 100644 --- a/Extensions/Sprite.cpp +++ b/Extensions/Sprite.cpp @@ -1679,7 +1679,8 @@ int16_t TFT_eSprite::drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t fo if ((font>2) && (font<9)) { // This is slower than above but is more convenient for the RLE fonts - flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); + // flash_address = pgm_read_dword( pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); + flash_address = pgm_read_dword( (const void*)pgm_read_dword( &(fontdata[font].chartbl ) ) + uniCode*sizeof(void *) ); width = pgm_read_byte( (uint8_t *)pgm_read_dword( &(fontdata[font].widthtbl ) ) + uniCode ); height= pgm_read_byte( &fontdata[font].height ); }