Progress screen refactoring

This commit is contained in:
Bertrand Songis
2019-03-25 17:27:57 +01:00
parent 5d8ed05f29
commit 0c99545b27
37 changed files with 226 additions and 215 deletions
-16
View File
@@ -230,22 +230,6 @@ void drawStatusLine()
}
#endif
void drawProgressBar(const char * label, int num, int den)
{
lcdClear();
if (label) {
lcdDrawTextAlignedLeft(4*FH, label);
}
lcdDrawRect(4, 6*FH+4, LCD_W-8, 7);
if (num > 0 && den > 0) {
int width = ((LCD_W-12)*num)/den;
lcdDrawSolidHorizontalLine(6, 6*FH+6, width, FORCE);
lcdDrawSolidHorizontalLine(6, 6*FH+7, width, FORCE);
lcdDrawSolidHorizontalLine(6, 6*FH+8, width, FORCE);
}
lcdRefresh();
}
const unsigned char SLEEP_BITMAP[] = {
#include "sleep.lbm"
};