Trouble with drawBitmap function

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)

Perhaps drawing on-screen moves the origin-point for bitmaps.

This would be a thing in a library you might be using?

Never mind!
I got it to work better and faster with...
#include <Adafruit_GFX_AS.h> // Core graphics library
#include <Adafruit_ILI9341_AS.h> // Hardware-specific library

Which duino are you using?

Can you leave details for members to read and follow? This forum will be a better resource if you do.