X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=df5fe4722f3751340a8053bc50a5be9189d9a306;hp=388bde6f744e24b273aa8a5e90f233ea16425a29;hb=65bc423db5f8413e8eabc6025229b0507901d646;hpb=b247bffe71ab80ff050a4ebcf54b290fd68d8c6e diff --git a/src/screens.c b/src/screens.c index 388bde6f..df5fe472 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4015,8 +4015,12 @@ static void drawTypeNameText(char *name, struct TextPosInfo *pos, int sy = (multiple_users ? amSY + pos->y : mSY + ALIGNED_TEXT_YPOS(pos)); int font_nr = (active ? FONT_ACTIVE(pos->font) : pos->font); int font_width = getFontWidth(font_nr); + int font_xoffset = getFontDrawOffsetX(font_nr); + int font_yoffset = getFontDrawOffsetY(font_nr); + int font_sx = sx + font_xoffset; + int font_sy = sy + font_yoffset; - DrawBackgroundForFont(sx, sy, pos->width, pos->height, font_nr); + DrawBackgroundForFont(font_sx, font_sy, pos->width, pos->height, font_nr); sprintf(text, "%s%c", name, (active ? '_' : '\0'));