From d9c1b47816d9e6a142f721d1ea2b55e21da53f57 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 1 Feb 2024 18:14:23 -0500 Subject: [PATCH] fix last commit --- src/tiv.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tiv.cpp b/src/tiv.cpp index a59468d..5a0b9e8 100644 --- a/src/tiv.cpp +++ b/src/tiv.cpp @@ -550,13 +550,13 @@ void printImage(const cimg_library::CImg &image, ? createCharData(image, x, y, 0x2584, 0x0000ffff) : findCharData(image, x, y, flags); if (x == 0 || charData.bgColor != lastCharData.bgColor) - std::cout << emitTermColor(flags | FLAG_BG, charData.bgColor[0], - charData.bgColor[1], - charData.bgColor[2]); + std::cout << emitTermColor( + charData.bgColor[0], charData.bgColor[1], + charData.bgColor[2], flags | FLAG_BG); if (x == 0 || charData.fgColor != lastCharData.fgColor) - std::cout << emitTermColor(flags | FLAG_FG, charData.fgColor[0], - charData.fgColor[1], - charData.fgColor[2]); + std::cout << emitTermColor( + charData.fgColor[0], charData.fgColor[1], + charData.fgColor[2], flags | FLAG_FG); printCodepoint(charData.codePoint); lastCharData = charData; }