Skip to content

Commit

Permalink
Another minor kerning tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 6, 2024
1 parent 3fae951 commit 00c089c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/c_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ static int C_OverlayWidth(const char *text, const bool monospaced)
else if (isdigit(letter))
width += (monospaced ? zerowidth : SHORT(consolefont[letter - CONSOLEFONTSTART]->width));
else if (letter >= CONSOLEFONTSTART)
width += SHORT(consolefont[letter - CONSOLEFONTSTART]->width);
width += (SHORT(consolefont[letter - CONSOLEFONTSTART]->width) - (letter == ','));
}

return width;
Expand Down Expand Up @@ -1273,7 +1273,7 @@ static void C_DrawOverlayText(byte *screen, const int screenwidth, int x, const
else
{
V_DrawOverlayTextPatch(screen, screenwidth, x - (letter == ','), y, patch, width - 1, color, tinttab);
x += width;
x += (width - (letter == ','));
}
}
}
Expand Down

0 comments on commit 00c089c

Please sign in to comment.