From 4b4c21cfa4fb083e5c845ddbccea4c016761f512 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 7 Feb 2020 18:33:58 +0100 Subject: [PATCH] neonmodes work better with bordcolor changed --- drawing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index 9c89fd29..64e08660 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2092,7 +2092,7 @@ EX dqi_poly& queuepolyat(const transmatrix& V, const hpcshape& h, color_t col, P if(poly_outline != 0xFF) ptd.outline = poly_outline; break; case 4: { - if(poly_outline > 0xFF) { + if(poly_outline && (poly_outline>>8) != bordcolor) { ptd.color = magentize(col); ptd.outline = 0xFF; } @@ -2249,7 +2249,7 @@ EX void queuestrn(const transmatrix& V, double size, const string& chr, color_t } case 4: { dynamicval c(poly_outline, poly_outline); - if(poly_outline > 0xFF) { + if(poly_outline && (poly_outline>>8) != bordcolor) { col = magentize(col << 8) >> 8; poly_outline = 0xFF; }