I found a function that quickly draws bitmaps from my SD card and displays them on my ILI941 TFT. It was working fine, but now I have come across a strange situation. If I draw multiple bitmaps in a row, everything is still fine, but when I draw a bitmap, then draw an object on screen (for example a filled rectangle), the next time I try to draw a bitmap, it seems to try to fit the bitmap into the last drawn object. I have a work around -- I draw a filled rectangle on the whole screen before I draw my next bitmap. It did not do this before, so I am wondering what I have done wrong. I copied the function from somewhere months ago, and for the life of me, I cannot find it again. The code is below. Any help would be appreciated.
Test_DrawBitmap.ino (7.5 KB)