X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftext.c;h=e7765fc68282ee2582894df215a379548ececc2c;hb=5c6c42f1;hp=c8e90d116f47b462d37d585f4a165e71fc8f6dc7;hpb=f00b6b1432dbaf42fcd8885d30fa890e3c2a93cc;p=rocksndiamonds.git diff --git a/src/libgame/text.c b/src/libgame/text.c index c8e90d11..e7765fc6 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -103,8 +103,8 @@ void getFontCharSource(int font_nr, char c, Bitmap **bitmap, int *x, int *y) int font_pos = getFontCharPosition(font_nr, c); *bitmap = font->bitmap; - *x = font->src_x + (font_pos % font->num_chars_per_line) * font->width; - *y = font->src_y + (font_pos / font->num_chars_per_line) * font->height; + *x = font->src_x + (font_pos % font->num_chars_per_line) * font->offset_x; + *y = font->src_y + (font_pos / font->num_chars_per_line) * font->offset_y; }