Progress screen refactoring
This commit is contained in:
@@ -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"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user