[AD] [ alleg-Bugs-2650288 ] al_set_new_display_format values can only be guess

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


Bugs item #2650288, was opened at 2009-03-01 01:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2650288&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: 4.9
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Elias Pschernig (elias)
Assigned to: Nobody/Anonymous (nobody)
Summary: al_set_new_display_format values can only be guess

Initial Comment:
Right now, whenever you use the function al_set_new_display_format(), your program will fail on some platforms/drivers. We had several of the Allegro examples fail because of this. A possible solution would be to add two functions:

int n = al_get_num_display_formats()
int format = al_get_display_format(int index)

They would work like the existing al_get_num_display_modes/al_get_display_mode and list all supported pixel formats.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2650288&group_id=5665




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