X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftext.c;h=aa71f15b63c97e32ab155233db1ee5bce06d5ad7;hb=5e13b105ad48e61a5cd46941c61a16ad00445248;hp=36cb6dd5a90bf61e89fe9bcd2b907fb414120d25;hpb=3ff2e8a0b5c27b99a9920bdf5ed82bc41bf40181;p=rocksndiamonds.git diff --git a/src/libgame/text.c b/src/libgame/text.c index 36cb6dd5..aa71f15b 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -118,7 +118,7 @@ int maxWordLengthInString(char *text) /* simple text drawing functions */ /* ========================================================================= */ -void DrawInitTextExt(char *text, int ypos, int font_nr, boolean force) +void DrawInitText(char *text, int ypos, int font_nr) { LimitScreenUpdates(TRUE); @@ -141,22 +141,6 @@ void DrawInitTextExt(char *text, int ypos, int font_nr, boolean force) } } -void DrawInitText(char *text, int ypos, int font_nr) -{ - // DrawInitTextExt(text, ypos, font_nr, TRUE); - DrawInitTextExt(text, ypos, font_nr, FALSE); -} - -void DrawInitTextAlways(char *text, int ypos, int font_nr) -{ - DrawInitTextExt(text, ypos, font_nr, TRUE); -} - -void DrawInitTextIfNeeded(char *text, int ypos, int font_nr) -{ - DrawInitTextExt(text, ypos, font_nr, FALSE); -} - void DrawTextF(int x, int y, int font_nr, char *format, ...) { char buffer[MAX_OUTPUT_LINESIZE + 1]; @@ -199,11 +183,6 @@ void DrawTextSCentered(int y, int font_nr, char *text) gfx.sy + y, text, font_nr); } -void DrawTextCentered(int y, int font_nr, char *text) -{ - DrawText((gfx.sxsize - getTextWidth(text, font_nr)) / 2, y, text, font_nr); -} - void DrawTextSAligned(int x, int y, char *text, int font_nr, int align) { DrawText(gfx.sx + ALIGNED_XPOS(x, getTextWidth(text, font_nr), align), @@ -307,9 +286,6 @@ void DrawTextExt(DrawBuffer *dst_bitmap, int dst_x, int dst_y, char *text, font_width, font_height); } - SetClipOrigin(src_bitmap, src_bitmap->stored_clip_gc, - dst_x - src_x, dst_y - src_y); - BlitBitmapMasked(src_bitmap, dst_bitmap, src_x, src_y, font_width, font_height, dst_x, dst_y); }