SiegeLord / DAllegro5

D binding to the Allegro5 game development library
Other
42 stars 15 forks source link

Reorder src/dest args in al_copy_transform. #25

Closed rcorre closed 9 years ago

rcorre commented 9 years ago

The proper signature is al_copy_transform(ALLEGRO_TRANSFORM dest, const ALLEGRO_TRANSFORM src), but the binding was declared as al_copy_transform(in ALLEGRO_TRANSFORM src, ALLEGRO_TRANSFORM dest).

See: https://www.allegro.cc/manual/5/al_copy_transform

This makes sure the const specifier applies to the correct parameter and avoids causing confusion when seeing the parameter names in error messages.

SiegeLord commented 9 years ago

Thanks!