From 0dacb156ed40dff8952c96c6ee6a3327627d4c71 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 16 Dec 2017 01:37:22 +0000 Subject: [PATCH] Allow larger images --- examples/320 x 240/TFT_Flash_Bitmap/TFT_Flash_Bitmap.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/320 x 240/TFT_Flash_Bitmap/TFT_Flash_Bitmap.ino b/examples/320 x 240/TFT_Flash_Bitmap/TFT_Flash_Bitmap.ino index 081087c..780dab1 100644 --- a/examples/320 x 240/TFT_Flash_Bitmap/TFT_Flash_Bitmap.ino +++ b/examples/320 x 240/TFT_Flash_Bitmap/TFT_Flash_Bitmap.ino @@ -76,7 +76,7 @@ void loop() // Draw array "icon" of defined width and height at coordinate x,y // Maximum icon size is 255x255 pixels to avoid integer overflow -void drawIcon(const unsigned short* icon, int16_t x, int16_t y, int8_t width, int8_t height) { +void drawIcon(const unsigned short* icon, int16_t x, int16_t y, uint16_t width, uint16_t height) { uint16_t pix_buffer[BUFF_SIZE]; // Pixel buffer (16 bits per pixel)