Re: [AD] About create_bitmap |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 2004-11-03 at 06:20 -0600, allegrovp@xxxxxxxxxx wrote:
> I have a modification for that on my
> tree, IIRC it was not accepted. I needed
> to be able to have valid BITMAPs of
> zero size (either width or height).
> The code takes care of the memory allocation problem.
> I believe Eric wanted to eventually replace the create_bitmap code with something even more general, but that was a while ago.
> I can dig it up, if anyone's interested.
> I haven't actually used Allegro for months now, and I've just come back reading the list a couple days ago.
>
Hm, to me, a bitmap with either dimension as 0 doesn't make much sense -
so I'd tend to change this to ASSERT(w > 0 && h > 0). If there's some
special reason why you need bitmaps with w/h 0, or maybe even with
negative dimensions, it seems you could easily use a wrapper.
--
Elias Pschernig