2020-03-31 05:58 AM
I have attached a very simple Application to show the problem with the Cacheable Container.
I have a Display with a Resolution of 480x320. The Display is naturally in Portrait mode, but we use it Landscape, so I have set in the Display configuration the Width to 320 and the Height to 480.
In this configuration if the cache functionality of the CacheableContainer is enabled the whole container is just black. If I disable the cache functionality the Container shows what it should.
When I now invert the Display configuration to width=480 and height=320, the Cacheable Container works.
Am I missing something here ?
Thanks for helping
Solved! Go to Solution.
2021-02-12 02:57 AM
2020-03-31 06:52 AM
Hi,
Let me look into this,
/Martin
2020-08-24 10:57 PM
Is there an update on this issue?
2020-09-07 03:33 AM
Hi, yes, it was confirmed that there is an issue with Cacheable container when rotation is used. I must be honest and say i completely forgot about this because i confused it with another W < H issue with a widget that used the texturemapper
I'll return to this thread with a temprary fix while i get the change into one of the coming releases. Probably not 4.15.0 because its getting close.
/Martin
2020-11-10 03:30 PM
@Martin KJELDSEN
I just started today using a cacheable bitmap and I have my screen rotated. I am seeing some pretty strange things happening. Could you please give us an update on this topic?
2020-11-11 02:40 AM
I sure can. There's a bug (it's fixed now but not published) but i've tested it - When you rotate the screen the transformed coordinates where the cacheable container reads pixels from are incorrect.
I may be able to send you a patch if you're interested in trying it out.
2020-11-11 07:17 AM
Please, that would be great to have.
2020-11-12 07:52 AM
@Martin KJELDSEN
Here is what my dynamic bitmap currently looks like when added on top of the active screen. This is of course after updating the cache on the cacheable container, setting the bitmap of a touchgfx::Image, and invalidating said touchgfx::Image.
2020-11-19 04:46 AM
I forgot about sending you the patch, but i'll get it out to you tomorrow, if that's okay.
2020-11-19 09:09 AM
I'm eagerly awaiting the patch.
Regards,
James