Re: [AD] Zero sized bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Tuesday 23 August 2005 00:47, AJ wrote:
> what if after you create a 0x1 or 1x0 (which ever it was that was
> allowed) and you attempt to access the ->line[] will that cause a crash ?
>
> i'd prefer to return NULL for bitmaps 0x1 or 1x0 sized bitmaps.
If it's allowed to create a 0x1 bitmap, then it's allowed. No sense in
returning NULL.
But it shouldn't be a problem anyway. You're checking if i<bmp->h before
accessing bmp->line[i], right?
Evert