From 1fe5f3fed2b43b1ad94ad65a110f6d8aaa6e99db Mon Sep 17 00:00:00 2001 From: TheRealOrange Date: Wed, 23 Feb 2022 00:11:51 +0800 Subject: [PATCH] update readme and fixed bug for black/white pixels --- README.md | 2 +- src/main.cpp | 12 ++++++------ tvp | Bin 42760 -> 42760 bytes 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e69fade..b953b0c 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Clearly there is potential here. By using the unicode quarter block characters, - ▝ (U+259D quadrant upper right) - ▖ (U+2596 quadrant lower left) - ▗ (U+2597 quadrant lower right) -- ▞ (U+259E 1uadrant upper right and lower left) +- ▞ (U+259E quadrant upper right and lower left) - ▄ (U+2584 lower half block) - ▐ (U+2590 right half block) - ▂ (U+2582 lower quarter block) diff --git a/src/main.cpp b/src/main.cpp index 2657c0e..72be447 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -241,12 +241,12 @@ int main(int argc, char *argv[]) { printf("\u001b[%d;%dH\u001b[48;2;0;0;0;38;2;255;255;255m fps: %5.2f | avg_fps: %5.2f | print: %6.2fms | dropped: %5d | curr_frame: %5d ", msg_y, 0, (double) frametimes.size() * 1000000.0 / frame10_time, avg_fps, (double) printing_time / 1000.0, dropped, curr_frame); - prevpixelbg[0] = 256; - prevpixelbg[1] = 256; - prevpixelbg[2] = 256; - prevpixel[0] = 256; - prevpixel[1] = 256; - prevpixel[2] = 256; + prevpixelbg[0] = 1000; + prevpixelbg[1] = 1000; + prevpixelbg[2] = 1000; + prevpixel[0] = 1000; + prevpixel[1] = 1000; + prevpixel[2] = 1000; // If the frame is empty, break immediately if (frame.empty()) { diff --git a/tvp b/tvp index a4b738dfa5c7974619c0f390d0d04bfa9d669464..167974665a68f7a99e77263dcfef7ec9d19954f2 100755 GIT binary patch delta 82 zcmeA;$JB9-X+sCINZg5YhGm9N(zoB_S|M0JZOyw6Vdm75eQwUc;L&Sq;PH+1 kIP1S;1_lO328QFTPr$6rhjiP_85t%krigD&NL}Fw0DeFo^Z)<=