X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Ftext.c;h=6dfdf7f86ac39eccfa40fd2b491567a0d9bbad45;hp=2fbf1cb319cf3b48b6514d552e383ba70898bbce;hb=49221e59bff18cdfbef8c877b588280266ae5037;hpb=1465ca1ffdf2104d25b9a46ca9bf8a3f175403fd diff --git a/src/libgame/text.c b/src/libgame/text.c index 2fbf1cb3..6dfdf7f8 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -76,8 +76,8 @@ void DrawTextFCentered(int y, int font_type, char *format, ...) vsprintf(buffer, format, ap); va_end(ap); - DrawText(playfield.sx + (playfield.sxsize - strlen(buffer) * font_width) / 2, - playfield.sy + y, buffer, FS_SMALL, font_type); + DrawText(gfx.sx + (gfx.sxsize - strlen(buffer) * font_width) / 2, + gfx.sy + y, buffer, FS_SMALL, font_type); } void DrawTextF(int x, int y, int font_type, char *format, ...) @@ -89,16 +89,16 @@ void DrawTextF(int x, int y, int font_type, char *format, ...) vsprintf(buffer, format, ap); va_end(ap); - DrawText(playfield.sx + x, playfield.sy + y, buffer, FS_SMALL, font_type); + DrawText(gfx.sx + x, gfx.sy + y, buffer, FS_SMALL, font_type); } void DrawText(int x, int y, char *text, int font_size, int font_type) { DrawTextExt(drawto, x, y, text, font_size, font_type); - if (x < playfield.dx) + if (x < gfx.dx) redraw_mask |= REDRAW_FIELD; - else if (y < playfield.vy) + else if (y < gfx.vy) redraw_mask |= REDRAW_DOOR_1; }