Re: [AD] d3d filtering flags

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Here's the code for how to handle the events:

al_resize_display(...);
my_resize_event_handler();

case ALLEGRO_EVENT_DISPLAY_RESIZE:
   al_acknowledge_resize(...);
   my_resize_event_handler();
   break;

That's assuming you want to do the same thing for both types of resize
event, which from the applications I can think of, you normally don't.

--
Trent Gamblin

On 2010-11-10, at 7:36 PM, Michał Cichoń wrote:

> Doesn't make sense to me. If application is event driven, then there
> is one place to handle resize event. That doesn't matter from where
> this event come from, changing resolution, dragging window by mouse or
> calling manually resize event.
> 
> This is not an issue in example application, but what should do the
> GUI library when I resize window in engine? Engine doesn't know what
> the GUI is, event isn't send, nothing happened. GUI is looking crappy.
> Only way to solve that is to manually send some user event to
> compensate missing one.





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/