fix last commit
This commit is contained in:
parent
7b3c8286fe
commit
d9c1b47816
1 changed files with 6 additions and 6 deletions
12
src/tiv.cpp
12
src/tiv.cpp
|
@ -550,13 +550,13 @@ void printImage(const cimg_library::CImg<unsigned char> &image,
|
||||||
? createCharData(image, x, y, 0x2584, 0x0000ffff)
|
? createCharData(image, x, y, 0x2584, 0x0000ffff)
|
||||||
: findCharData(image, x, y, flags);
|
: findCharData(image, x, y, flags);
|
||||||
if (x == 0 || charData.bgColor != lastCharData.bgColor)
|
if (x == 0 || charData.bgColor != lastCharData.bgColor)
|
||||||
std::cout << emitTermColor(flags | FLAG_BG, charData.bgColor[0],
|
std::cout << emitTermColor(
|
||||||
charData.bgColor[1],
|
charData.bgColor[0], charData.bgColor[1],
|
||||||
charData.bgColor[2]);
|
charData.bgColor[2], flags | FLAG_BG);
|
||||||
if (x == 0 || charData.fgColor != lastCharData.fgColor)
|
if (x == 0 || charData.fgColor != lastCharData.fgColor)
|
||||||
std::cout << emitTermColor(flags | FLAG_FG, charData.fgColor[0],
|
std::cout << emitTermColor(
|
||||||
charData.fgColor[1],
|
charData.fgColor[0], charData.fgColor[1],
|
||||||
charData.fgColor[2]);
|
charData.fgColor[2], flags | FLAG_FG);
|
||||||
printCodepoint(charData.codePoint);
|
printCodepoint(charData.codePoint);
|
||||||
lastCharData = charData;
|
lastCharData = charData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue