diff --git a/Adafruit_GFX.cpp b/Adafruit_GFX.cpp index a7a541cc..2675bd6c 100644 --- a/Adafruit_GFX.cpp +++ b/Adafruit_GFX.cpp @@ -658,7 +658,7 @@ void Adafruit_GFX::image(PImage & img, uint16_t x, uint16_t y) { // Convert pixel from BMP to TFT format, push to display b = sdbuffer[buffidx++]; - g = sdbuffer[buffidx++]; + g = sdbuffer[buffidx++];// out of bound condition can be attached r = sdbuffer[buffidx++]; //pushColor(tft.Color565(r,g,b)); drawPixel(x + col, y + row, newColor(r, g, b)); @@ -668,4 +668,4 @@ void Adafruit_GFX::image(PImage & img, uint16_t x, uint16_t y) { } -#endif \ No newline at end of file +#endif