diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2019-04-27 03:52:15 +0000 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2019-04-27 05:30:39 +0000 |
commit | 464f7169625367a86978886fce250c245fe17972 (patch) | |
tree | 74a4215849f615bd6cfa82a6d4eed64e15f0fa35 /src/screen.cpp | |
parent | 6b11a9530f575d1851e63e92929b41bec7640c00 (diff) | |
download | fbterm-master.tar.gz fbterm-master.zip |
Replace cursor logic with progress bar drawing logicHEADmaster04-16-2019
This requires external SIGARLM to be sent after FIFO load
TODO: Figure out a better way to update the progress bar
when data written to FIFOs?
Diffstat (limited to 'src/screen.cpp')
-rw-r--r-- | src/screen.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/screen.cpp b/src/screen.cpp index f7fb8da..c4a7233 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -113,8 +113,8 @@ Screen *Screen::createInstance() pScreen->mProgressBarMaxPipeFD = open("/var/run/fbterm_progress_max", O_RDONLY|O_NONBLOCK); pScreen->mProgressBarValuePipeFD = open("/var/run/fbterm_progress_value", O_RDONLY|O_NONBLOCK); - /* Disable progress bar by default */ - pScreen->mProgressBarMax = 0; + /* Draw empty progress bar outline, waiting for real data from pipes */ + pScreen->mProgressBarMax = 1; pScreen->mProgressBarValue = 0; /* Set up progress bar */ @@ -349,11 +349,6 @@ void Screen::drawText(u32 x, u32 y, u8 fc, u8 bc, u16 num, u16 *text, bool *dw) } else if (draw_space) { fillRect(startx, y, x - startx, FH(1), bc); } - - /* HACK - * If text changed, maybe progress did too? - */ - drawProgressBar(); } void Screen::drawGlyphs(u32 x, u32 y, u8 fc, u8 bc, u16 num, u16 *text, bool *dw) |