[AD] 3.9.32: Bug in textprintf_right |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
textprintf_right seems to have mutated since I submitted it... the current
version reads:
/* textprintf_right:
* Like textprintf(), but uses the x coordinate as the right rather than
* the left of the string.
*/
void textprintf_right(BITMAP *bmp, FONT *f, int x, int y, int color, char
*format, ...)
{
char buf[512];
va_list ap;
va_start(ap, format);
uvsprintf(buf, format, ap);
va_end(ap);
textout_centre(bmp, f, buf, x, y, color);
}
The last line should be:
textout_right(bmp, f, buf, x, y, color);
--Chris
============================================================================
Chris La Mantia * celamantia@xxxxxxxxxx * http://members.home.com/celamantia
Current Project: Infinite Worlds, a CRPG with randomly-generated worlds
More information at http://members.home.com/celamantia/infinite
Allegro RPG Programmer's Mailing List: http://www.onelist.com/group/agprpg