commit 6b11a17cece477cec588800873ad9c7e1de7083c
parent 2fce14aeab9442c21dc2fb0b1bc01e356dd9770e
Author: Andy Herbert <andy.herbert@gmail.com>
Date: Sat, 10 Jan 2015 16:01:31 +0000
Fix stray pixel issue when generating bold characters for amiga fonts.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ansilove.js b/ansilove.js
@@ -439,7 +439,7 @@ var AnsiLove = (function () {
fontBuffer[bufferIndex].set(palette[fg], k);
} else {
// In case that this is an <amigaFont>, and the foreground colour <fg> is set to bold type, i.e. 8 to 15, make sure we 'double-width' the glyph.
- if (amigaFont && (fg > 7) && (i > 0) && bits[j - 1] && (options.bits === "ced" || options.bits === "workbench")) {
+ if (amigaFont && (fg > 7) && (i % width > 0) && bits[j - 1] && (options.bits === "ced" || options.bits === "workbench")) {
fontBuffer[bufferIndex].set(palette[fg], k);
} else {
fontBuffer[bufferIndex].set(palette[bg], k);