Re: [AD] Rationale behind al_lock_bitmap* parameters |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Rationale behind al_lock_bitmap* parameters
- From: "Trent Gamblin" <trent@xxxxxxxxxx>
- Date: Fri, 26 Dec 2008 13:11:50 -0700 (MST)
On Fri, December 26, 2008 9:27 am, Elias Pschernig said:
>> In my mind, the function signature should look like this for the
>> al_lock_bitmap function:
>>
>> ALLEGRO_LOCKED_REGION *al_lock_bitmap(ALLEGRO_BITMAP *bitmap, int
>> flags)
>
> Well, make it:
>
> ALLEGRO_LOCKED_REGION const *al_lock_bitmap(ALLEGRO_BITMAP *bitmap, int
> flags)
Why not just return a non-pointer like we do with ALLEGRO_COLOR?
Trent :{)>