Re: [AD] al_acknowledge_resize and ALLEGRO_EVENT_DISPLAY_RESIZE |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-11-03, Steven Wallace <steven.t.wallace@xxxxxxxxxx> wrote:
> I was playing around with some things and noticed that all
> al_acknowledge_resize appears to do in X is reset the OpenGL coordinates so
> that (0,0) is the upper-left corner. Perhaps for some people this is
> necessary to resize the drawing surface, but it was not the case for me, and
> the actual window will be changing size whether you want it to or not.
I don't know if that's right.
I think Peter Hull also pointed out an existing design flaw with
al_acknowledge_resize() and multiple windows.
> This led me to believe that al_acknowledge_resize is unnecessary, and could
> instead be called at the same time the ALLEGRO_EVENT_DISPLAY_RESIZE event is
> fired.
You have no control when an event is fired. The window dimensions and
backbuffer (?) could change *at any time*. I don't see how that could
be usable.
Peter