commit 4409d78d614e3f13ec6ff0c8f7b714caea0d90b4
parent af2c726738b36df2af340a244972622de4d3fb2d
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date: Tue, 13 Mar 2012 19:42:12 +0100
Fixing color issue with XBin loader \o/
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ansilove/ansilove.c b/ansilove/ansilove.c
@@ -2091,7 +2091,7 @@ void alXbinLoader(char *input, char output[], char bits[])
color_background = (attribute & 240) >> 4;
color_foreground = attribute & 15;
- alDrawChar(im_XBIN, font_data, 8, 8, 16, position_x, position_y, color_background, color_foreground, character);
+ alDrawChar(im_XBIN, font_data, 8, 8, 16, position_x, position_y, colors[color_background], colors[color_foreground], character);
position_x++;
@@ -2119,7 +2119,7 @@ void alXbinLoader(char *input, char output[], char bits[])
color_background = (attribute & 240) >> 4;
color_foreground = attribute & 15;
- alDrawChar(im_XBIN, font_data, 8, 8, 16, position_x, position_y, color_background, color_foreground, character);
+ alDrawChar(im_XBIN, font_data, 8, 8, 16, position_x, position_y, colors[color_background], colors[color_foreground], character);
position_x++;
offset+=2;