Re: [AD] PALETTE and RGB* |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Peter Wang <tjaden@xxxxxxxxxx> wrote:
>> if (!pal)
>> pal = tmppal;
>>
>> Using NULL avoids cluttering the stack with an useless array.
>
>Although it's array syntax, it's still a pointer getting passed.
>You can pass NULL either way.
or use PALETTE * which is logical. why use hacks if the whole point with
typedef'ing PALETTE must be to improve readability on the sources? but this
will break ABI (since we then use RGB ** instead of RGB *) and sourcecode,
so this change shouldn't be done on the stable allegro.
cya.
-henrik