X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftext.c;h=36096240203880ba31d6744f0c9bab2d9cc05eb0;hb=bd4bc1bc76940bd91ecfbf7d01790c0433ab19e2;hp=17475e8c721247b0d92a51532229275e6676e78b;hpb=b926e47e037013dece14e987b3e6b9fffe05e304;p=rocksndiamonds.git diff --git a/src/libgame/text.c b/src/libgame/text.c index 17475e8c..36096240 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -152,8 +152,8 @@ static void DrawInitTextExt(char *text, int ypos, int font_nr, boolean update) int width = video.width; int height = getFontHeight(font_nr); - ClearRectangle(drawto, 0, y, width, height); - DrawTextExt(drawto, x, y, text, font_nr, BLIT_OPAQUE); + ClearRectangleOnBackground(drawto, 0, y, width, height); + DrawTextExt(drawto, x, y, text, font_nr, BLIT_MASKED); if (update) BlitBitmap(drawto, window, 0, 0, video.width, video.height, 0, 0); @@ -646,6 +646,17 @@ int DrawTextBuffer(int x, int y, char *text_buffer, int font_nr, return current_line; } +int DrawTextBufferS(int x, int y, char *text_buffer, int font_nr, + int line_length, int cut_length, int max_lines, + int line_spacing, int mask_mode, boolean autowrap, + boolean centered, boolean parse_comments) +{ + return DrawTextBuffer(gfx.sx + x, gfx.sy + y, text_buffer, font_nr, + line_length, cut_length, max_lines, + line_spacing, mask_mode, autowrap, + centered, parse_comments); +} + int DrawTextBufferVA(int x, int y, char *format, va_list ap, int font_nr, int line_length, int cut_length, int max_lines, int line_spacing, int mask_mode, boolean autowrap,