Menu

#377 OS X doesn't update al_get_display_{width,height} on resize

5.1
open
nobody
None
1
2012-12-30
2012-12-29
Ed Ropple
No

Hey folks. Apologies if this is a dupe, but I couldn't find one. The title pretty much says it all - after you pick up an ALLEGRO_EVENT_DISPLAY_RESIZE, the values you get out of al_get_display_width() and al_get_display_height() do not match the values contained in the resize event.

Discussion

  • Trent Gamblin

    Trent Gamblin - 2012-12-29

    Sorry if this is obvious but you didn't indicate. Are you calling al_acknowledge_resize before al_get_display_width/height? If so I'll look at it when I boot OS X next.

     
  • Ed Ropple

    Ed Ropple - 2012-12-29

    You called it. False alarm! Sorry about that.

     
  • Ed Ropple

    Ed Ropple - 2012-12-29

    A suggestion: Maybe it would be a good idea to note that in the documentation on this page: https://www.allegro.cc/manual/5/ALLEGRO_EVENT

    -Ed

     
  • Trent Gamblin

    Trent Gamblin - 2012-12-30

    Thanks for the suggestion. The change should show up within 24 hours.

     

Log in to post a comment.