Problem using cacheReplaceBitmap method.
I tried to use bitmap caching with approach, where I cache all bitmaps except backgrounds during initialization, while background images are cached when changing screens. This method is described here:
This technique assumes that one uses cacheReplaceBitmap method to replace background images in cache. I'm pretty sure that there is an error in this method, and that's why:
While debugging my application, I saw that when I cached background for first screen, it was placed in address X, but the first call of cacheReplaceBitmap copied new image by the address Y, which is not equal to X (actually it is greater than X by the zize of the background). So cacheReplaceBitmap does not replace the bitmap, but rather places new image right after the one I try to swap. I'm assuming, that cacheReplaceBitmap somehow falsely transfers the end address of bitmap to the blockCopy function, when it should be transferring the begining.
Using STM32CubeIDE version 1.3.0 or 1.2.0 (works the same way in either of them) and TouchGFX version 4.13.0
Application is running on STM32F769 DISCOVERY board.
Please confirm this bug, or tell me where I am wrong.
Alex.
