> From: Cecilio Pardo <cpardo@imayhem.com>
> Date: Mon, 11 May 2020 12:13:50 +0200
>
> I'm trying to implement double buffered painting for Windows, to
> eliminate flicker.
Thank you very much for working on this.
> - When to flip buffers? I have tried to attach the flip to
> frame_up_to_date_hook on the 'terminal' struct, but it sometimes get
> called when it should not, producing flicker.
Did you try doing something similar to what xterm.c does on X? I mean
the block_buffer_flips trick. If you did, and it didn't work, why not
> - What portion of the screen has been updated? I have seen no clear way
> to find this out. I'm resorting to intercept calls to w32_fill_rect to
> mark areas as invalidated, as it /seems/ to be always used to clean
> the area before painting, but this is clearly not a solution.
Why not update the entire frame? That's what the X code does, AFAIU.