Re: [AD] to prefix or not to prefix (part 2) |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Javier González wrote: [snip]
Or, if I was evil: #define AL_TEXT_ALIGN_LEFT -1 #define AL_TEXT_ALIGN_CENTRE -2 #define AL_TEXT_ALIGN_RIGHT -3 Then we can get rid of the justify functions. If `align' is >= 0, then consider it as x2, otherwise consider it as alignment.But this one is really evil and obfuscated =)
And error prone, if the user passes negative coordinates! -- - Robert J Ohannessian "Microsoft code is probably O(n^20)" (my CS prof) http://pages.infinit.net/voidstar/
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |