Re: [AD] windows resizing regression |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 8 Nov 2010, at 22:01 , Trent Gamblin wrote:
> Sorry, I misread that as ex_fs_resize not ex_fs_window the other day.
> The bug is in the example. It was always intended that al_acknowledge
> resize was needed after an al_resize_display.
I don't think that's true.
From what I remember, the rationale was that you don't know when the user is going to resize the display, so you have to call al_acknowledge_resize() at the appropriate time. You (as a user) know when you're calling al_resize_display(), so there is no good reason you couldn't do the acknowledge resize at the same time.
The OS X port does this explicitly. It also doesn't generate a resize event when you call al_resize_display().
I think that's also in agreement with the documentation, which lists says nothing about resize events or the need to call al_acknowledge_resize() after calling al_resize_display().
So I would say that this is indeed a bug in the Windows port that should be fixed. Regardless, behaviour should be the same across platforms, so the behaviour on at least some platforms will need to be modified. I don't know what the X11 port does, but I guess it's similar to the OS X port since this was originally listed as a Windows-specific bug.
Evert