Skip to main content
Chandan Bhatia1
Associate III
September 30, 2020
Question

Double buffer with Touchgfx

  • September 30, 2020
  • 0 replies
  • 553 views

Hello, I have some doubt regarding touchgfx

Suppose I set for Double buffer and I am using customize widget. I get my framebuffer using below and later I modify buffer as per my customize widget logic. My doubt is that suppose I am modifying first copy of framebuffer in draw method, How my changes will get into next second framebuffer as I gonna call draw only once.

uint16_t *framebuffer = touchgfx::HAL::getInstance()->lockFrameBuffer();

As when I call widget invalidate method, my widget draw method executes.

Thanks

This topic has been closed for replies.