Re: [AD] Font drawing bug

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


Immaterial in this case, since at some point you will use the memory
allocated to the sprite anyway. Either immediately (by clearing it
explicitly) or afterwards.

When you clear the bitmap yourself you get to choose when to do the expensive task.

Personally, I don't see why that matters if you need to do it anyway. Personally.

That's the situation I was thinking of where you don't care about the
bitmap being cleared or not.

Then why clear it?

No reason to, in that case. That wasn't an argument for clearing them.

I do care. I care about optimization.

Exactly, which is why I asked just how expensive this is.

From the usability point of view it would
be best to have it cleared, even if you don't need it cleared.

That was my point, yes. There are situations where you want it cleared and then it's convenient if it's done for you. Then there are situations where you don't care.

Either way, if Allegro 4.2 doesn't guarentee that bitmaps are clear when allocated, there's less of a reason that Allegro 5 should.

Evert




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