libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit ad7b8710e28fd26b697c09eafd4a6dfd2d204c18
parent 8a2f2786d0cce3b0b85e87ae74fa96fb16868f94
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 29 Apr 2019 09:20:21 +0200

Use 'xbin_fontsize' for character height instead of an hardcoded value.

Diffstat:
Msrc/loaders/xbin.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -162,9 +162,9 @@ ansilove_xbin(struct ansilove_ctx *ctx, struct ansilove_options *options) background = (attribute & 240) >> 4; foreground = attribute & 15; - drawchar(canvas, font_data, 8, 16, column, row, - colors[background], colors[foreground], - character); + drawchar(canvas, font_data, 8, xbin_fontsize, + column, row, colors[background], + colors[foreground], character); column++;