From 555e93e0588c54808e99bc5076deb0b1736a992b Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Tue, 12 Jun 2018 17:01:47 +0200 Subject: [PATCH] vga2ansi maps negative values to 0 --- src/foptiattr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/foptiattr.cpp b/src/foptiattr.cpp index 56b68957..96008b0b 100644 --- a/src/foptiattr.cpp +++ b/src/foptiattr.cpp @@ -532,6 +532,8 @@ short FOptiAttr::vga2ansi (register short color) color = lookup_table[color]; } + else + color = 0; return color; }