X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftext.c;h=89f04c4922db6c45e4883678d316c4345fd37574;hb=6d37ddaaf9915af0f483f4fc04d07b98e99e091e;hp=382749e3e3fc2a176c92e0bdf767a1220d9856d0;hpb=01a911493067452c475a31b76a3b33154b6dd10f;p=rocksndiamonds.git diff --git a/src/libgame/text.c b/src/libgame/text.c index 382749e3..89f04c49 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -1,7 +1,7 @@ /*********************************************************** * Artsoft Retro-Game Library * *----------------------------------------------------------* -* (c) 1994-2000 Artsoft Entertainment * +* (c) 1994-2001 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -99,7 +99,7 @@ void DrawText(int x, int y, char *text, int font_size, int font_type) if (x < gfx.dx) redraw_mask |= REDRAW_FIELD; - else if (y < gfx.vy) + else if (y < gfx.vy || gfx.vy == 0) redraw_mask |= REDRAW_DOOR_1; } @@ -147,6 +147,10 @@ void DrawTextExt(DrawBuffer *bitmap, int x, int y, c = 92; else if (c == 'ü' || c == 'Ü') c = 93; + else if (c == '[' || c == ']') /* map to normal braces */ + c = (c == '[' ? '(' : ')'); + else if (c == '\\') /* bad luck ... */ + c = '/'; if ((c >= 32 && c <= 95) || c == '°') {