Re: [AD] fix for using transformations without a display and make blending mode a per-display state

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


On Fri, 2010-03-05 at 10:46 +1100, Peter Wang wrote:
> 
> Does the code in DllMain work?
> 

Yes, but that is only used with gcc 3.x and when using DLLs, from what I
understand.

> Anyway, it's only a tiny amount of memory so I think allocating it with
> thread_local_state is even preferable.  You don't really need
> memory_display then; just initialise memory_display_storage when the
> rest of the structure is initialised and return &memory_display_storage.
> 

True.

-- 
Elias Pschernig <elias.pschernig@xxxxxxxxxx>





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