RE: [AD] Allegro 5.0 graphic routines, alpha 3 |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> But isn't "gfx/width" a global variable, just like SCREEN_W? I.e.
> al_get_int("gfx/width") would be possible for sure, so why not
> also set it?
It's an input parameter to set_gfx_mode, thus a request. If the
mode setting fails, you'll end up with a wrong setting (and if
you specified GFX_SAFE, it might have set a different resolution
altogether). In this case, I'd rather have the normal API call,
which would update these variables (which would be read only)
upon success setting a video mode.
I'm just very wary of overuse of this system.
--
Vincent Penquerc'h
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |