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: Mon, 25 May 2020 00:41:22 +0800

Alexei Podtelezhnikov <address@hidden> wrote:

> 
> > On May 23, 2020, at 23:43, Anuj Verma <address@hidden> wrote:
> > 
> > Also, the application crashes when the width/height becomes zero.
> > So it should check the values of width/height before 
> > `gr_win32_surface_resize'
> > in the `WM_SIZE' message.
> 
> Thank you and Dmitry for your suggestions and testing. Clearly, the smooth
> resizing is probably not meant to be in Windows by design.

Well, the applications are supposed to render window contents on WM_PAINT,
and on WM_SIZE change the canvas size. In other words, the demo should take
into account that window size could change but a being painted bitmap stay
the same.

> So I will just
> use WM_EXITSIZEMOVE instead of WM_SIZE to remove artists and be done with it.

That would leave the cases of external window resizing and maximizing not
handled.

-- 
Dmitry.



reply via email to

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