diff options
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) |