Re: [AD] SF.net SVN: alleg:[11915] allegro/branches/4.9/src

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


Peter Wang wrote:

Can we not add an `unfilled' field to ALLEGRO_EXTRA_DISPLAY_SETTINGS,
initialise that to true, then before any operation working on an
ALLEGRO_EXTRA_DISPLAY_SETTINGS structure, check if `unfilled' is true
and call _al_fill_display_settings()?

See how I did it. The only problem with it is the fragility. Whenever a new setting is added, tls.c will have to be updated. We can keep it like this for this release, but it I think the only real solution is to have the whole TLS struct dynamic, like we do on Windows.


--
Milan Mimica
http://sparklet.sf.net




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