cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx Custom Widget glitch when switching framebuffer

SBACO
Associate III

Hello,

I am facing a glitch issue when the frame buffer is switching with a custom widget. Both frame buffer seems to be initialized when screen enter. A few part of the area is redraw on one framebuffer. Then I have a few update on the second framebuffer, but is does not fully overlap the update done on the first framebuffer. The consequence is that part of the area is not redrawn correctly and the image appears to move a little bit. I put some log showing the rect updates in the draw function within the framebuffer. Here is the output.

The format is rect([A,B],[C,D] - E) where A is rect.x, B is rect.right(), C is rect.y, D rect.bottom() and E is address of framebuffer locked.

Hope it is enough to try to understand the issue. My code is based on the QrCode example.

Regards.

[13.952] rect([0,128],[0,128] - 0x24000000)               FB1

[14.002] rect([0,128],[0,128] - 0x24025800)      FB2

[14.044] rect([0,128],[18,72] - 0x24000000)               FB1

[14.048] rect([0,93],[0,18] - 0x24000000)               FB1

[14.052] rect([49,101],[88,112] - 0x24000000)            FB1

[14.057] rect([0,11],[123,128] - 0x24000000)            FB1

[14.078] rect([0,11],[123,128] - 0x24025800)   FB2

[14.082] rect([0,25],[0,11] - 0x24025800)      FB2

[14.086] rect([39,74],[0,18] - 0x24025800)      FB2

[14.089] rect([0,128],[18,72] - 0x24025800)      FB2

[14.092] rect([49,101],[88,112] - 0x24025800)   FB2

[14.096] rect([75,93],[0,12] - 0x24025800)      FB2

[14.158] rect([49,101],[88,112] - 0x24000000)            FB1

[14.161] rect([0,25],[0,11] - 0x24000000)               FB1

[14.165] rect([75,93],[0,12] - 0x24000000)               FB1

[14.168] rect([0,11],[123,128] - 0x24000000)            FB1

[14.171] rect([39,74],[0,18] - 0x24000000)               FB1

[14.174] rect([0,128],[18,72] - 0x24000000)               FB1

[14.358] rect([0,11],[123,128] - 0x24025800)   FB2

[14.360] rect([0,25],[0,11] - 0x24025800)      FB2

[14.364] rect([0,128],[18,72] - 0x24025800)      FB2

[14.367] rect([49,101],[88,112] - 0x24025800)   FB2

[14.369] rect([39,74],[0,18] - 0x24025800)      FB2

[14.374] rect([75,93],[0,12] - 0x24025800)      FB2

[14.399] rect([49,101],[88,112] - 0x24000000)            FB1

[14.403] rect([0,11],[123,128] - 0x24000000)            FB1

[14.405] rect([0,25],[0,11] - 0x24000000)               FB1

[14.409] rect([0,128],[18,72] - 0x24000000)               FB1

[14.412] rect([76,93],[0,12] - 0x24000000)               FB1

[14.414] rect([26,74],[0,18] - 0x24000000)               FB1

[14.460] rect([0,25],[0,11] - 0x24000000)               FB1

[14.464] rect([0,128],[18,72] - 0x24000000)               FB1

[14.467] rect([76,93],[0,12] - 0x24000000)               FB1

[14.483] rect([0,11],[123,128] - 0x24000000)            FB1

[14.486] rect([49,101],[88,112] - 0x24000000)            FB1

[14.489] rect([26,74],[0,18] - 0x24000000)               FB1

[14.689] rect([49,101],[88,112] - 0x24025800)   FB2

[14.692] rect([0,25],[0,11] - 0x24025800)      FB2

[14.696] rect([39,128],[0,18] - 0x24025800)      FB2

[14.700] rect([0,128],[18,72] - 0x24025800)      FB2

[14.706] rect([0,11],[123,128] - 0x24025800)   FB2

0 REPLIES 0