Re: [AD] Allegro 5.0 graphic routines, alpha 3

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


> al_set_int("gfx/color_depth",  16);
> al_set_int("gfx/refresh_rate", 70);
> al_set_int("gfx/width", 640);
> al_set_int("gfx/height", 480);
> al_set_int("gfx/mode", AL_GFX_AUTO);
> al_set_int("gfx/update", AL_GFX_UPDATE_AUTO);
> 
> display = al_create_display_bitmap();

too long IMHO. lots of programmers are lazy :)

what about
"
display = al_create_display(AL_GFX_AUTO, 640, 480, 16,
AL_GFX_UPDATE_AUTO, 70);"
then?

u can put 0 to autodetect a parameter as refresh of color depth for
example...

-- 
"When the world is in darkness, four warriors will come..."
                                        Final Fantasy I

_.-:/°^^°\:-._.-:/°^^°\:-._          __.         ____
 - Lo'oRiS il Kabukimono -          / /|       /^___ \
Real Name: Lorenzo Petrone         / / /      / /L_/ /
e-mail: _lano_@xxxxxxxxxx          / / /      /  ___-°/
irc.azzurra.org #lano            / /_/__    /  /|__-°
digilander.iol.it/lano666       /______/|  /__/ /
^°\:-.__.-:/°^°\:-.__.-:/°^     |______|/  |__L/



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