- DrawTextExt(drawto, gc, x, y, text, font, col);
+ char buffer[FULL_SXSIZE / FONT3_XSIZE + 10];
+ int font_xsize;
+ va_list ap;
+
+ font_xsize = (font_type < FC_SPECIAL1 ? FONT2_XSIZE :
+ font_type < FC_SPECIAL2 ? FONT3_XSIZE : FONT4_XSIZE);
+
+ va_start(ap, format);
+ vsprintf(buffer, format, ap);
+ va_end(ap);
+
+ DrawText(SX + (SXSIZE - strlen(buffer) * font_xsize) / 2, SY + y,
+ buffer, FS_SMALL, font_type);
+}
+
+void DrawText(int x, int y, char *text, int font_size, int font_type)
+{
+ DrawTextExt(drawto, gc, x, y, text, font_size, font_type);
+