freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resizable ft2demos


From: Dmitry Timoshkov
Subject: Re: resizable ft2demos
Date: Sat, 23 May 2020 20:18:56 +0800

Alexei Podtelezhnikov <address@hidden> wrote:

> On Sat, May 23, 2020 at 6:01 AM Dmitry Timoshkov <address@hidden> wrote:
> > In addition to CS_HREDRAW | CS_VREDRAW the WM_SIZE handler should call
> > DefWindowProc() so that default message processing forces a window update.
> > After that the window gets repainted while being resized.
> 
> I've achieved the same effect with CS_HREDRAW | CS_VREDRAW | CS_OWNDC.
> It looks funky as if everything is working without the bitmap data
> being updated.
> Check it out if you have time.

I'd suggest to avoid using CS_OWNDC.

> > I'd suggest to change the demo design, so that it provides a callback
> > to the graphics subsystem for a forced bitmap resize.
> 
> Indeed we need a callback or... Would a longjmp to break the loop work?

That would leave user32 in broken internal state.

-- 
Dmitry.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]