cancel
Showing results for 
Search instead for 
Did you mean: 

Cacheable container distorted background image.

As.3
Associate II

I am trying to build a smart switch using the stm32f7508 disco kit.

To improve the scrolling performance I am cached the container.

it distorted the background image and also some elements of the container stay on the bottom. the container elements are drawn correctly and performance is great. but I can't be able to solve the background image problem please help me.

Here is the images of before and after of my project.

https://imgur.com/a/IThEzBR

The problems

  1. background image distorted
  2. The bottom piece of the container stays at the bottom in a fixed state.

The code that i written.

uint16_t* sdram = (uint16_t*)(0xC011EE00);
 
 
 
   Bitmap::setCache(sdram, 635*1024, 1);
 
   dynamicBitmap1 = Bitmap::dynamicBitmapCreate(272,635,Bitmap::RGB565);
 
   container2.setCacheBitmap(dynamicBitmap1);
 
   container2.enableCachedMode(true);
 
   container2.updateCache();

Here is my design higherarchy

https://imgur.com/a/qe9m5B2

Sorry for the long writeup please help me.

0 REPLIES 0