InitPlayerGfxAnimation(player, action, move_dir);
/* ----------------------------------------------------------------------- */
InitPlayerGfxAnimation(player, action, move_dir);
/* ----------------------------------------------------------------------- */
int lypos = MICROLABEL_YPOS;
DrawText(lxpos, lypos, label_text, font_nr);
int lypos = MICROLABEL_YPOS;
DrawText(lxpos, lypos, label_text, font_nr);
- int len = strlen(leveldir_current->name);
- int lxpos = SX + (SXSIZE - len * getFontWidth(FONT_TEXT_1)) / 2;
+ int text_width = getTextWidth(leveldir_current->name, FONT_TEXT_1);
+ int lxpos = SX + (SXSIZE - text_width) / 2;
int lypos = SY + 352;
DrawText(lxpos, lypos, leveldir_current->name, FONT_TEXT_1);
int lypos = SY + 352;
DrawText(lxpos, lypos, leveldir_current->name, FONT_TEXT_1);