projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mock: levels.txt automatisch generieren
[hackover2013-badge-firmware.git]
/
project
/
commands
/
drawing
/
cmd_progress.c
diff --git
a/project/commands/drawing/cmd_progress.c
b/project/commands/drawing/cmd_progress.c
index
0168e05
..
dbd5dec
100644
(file)
--- a/
project/commands/drawing/cmd_progress.c
+++ b/
project/commands/drawing/cmd_progress.c
@@
-45,6
+45,7
@@
#ifdef CFG_TFTLCD
#include "drivers/displays/tft/lcd.h"
#include "drivers/displays/tft/drawing.h"
#ifdef CFG_TFTLCD
#include "drivers/displays/tft/lcd.h"
#include "drivers/displays/tft/drawing.h"
+ #include "drivers/displays/tft/controls/progressbar.h"
/**************************************************************************/
/*!
/**************************************************************************/
/*!
@@
-53,7
+54,7
@@
/**************************************************************************/
void cmd_progress(uint8_t argc, char **argv)
{
/**************************************************************************/
void cmd_progress(uint8_t argc, char **argv)
{
- int32_t x, y, w, h, percent,
border, borderfill, progressborder,
progressfill;
+ int32_t x, y, w, h, percent, progressfill;
// Convert supplied parameters
getNumber (argv[0], &x);
// Convert supplied parameters
getNumber (argv[0], &x);
@@
-61,13
+62,10
@@
void cmd_progress(uint8_t argc, char **argv)
getNumber (argv[2], &w);
getNumber (argv[3], &h);
getNumber (argv[4], &percent);
getNumber (argv[2], &w);
getNumber (argv[3], &h);
getNumber (argv[4], &percent);
- getNumber (argv[5], &border);
- getNumber (argv[6], &borderfill);
- getNumber (argv[7], &progressborder);
- getNumber (argv[8], &progressfill);
+ getNumber (argv[5], &progressfill);
// ToDo: Validate data!
// ToDo: Validate data!
- if (
border < 0 || border > 0xFFFF || borderfill < 0 || borderfill > 0xFFFF || progressborder < 0 || progressborder > 0xFFFF ||
progressfill < 0 || progressfill > 0xFFFF)
+ if (progressfill < 0 || progressfill > 0xFFFF)
{
printf("Invalid Color%s", CFG_PRINTF_NEWLINE);
return;
{
printf("Invalid Color%s", CFG_PRINTF_NEWLINE);
return;
@@
-79,7
+77,7
@@
void cmd_progress(uint8_t argc, char **argv)
}
// Draw the progress bar (always use rounded corners for simplicity sake)
}
// Draw the progress bar (always use rounded corners for simplicity sake)
-
drawProgressBar(x, y, w, h, DRAW_ROUNDEDCORNERS_ALL, DRAW_ROUNDEDCORNERS_ALL, border, borderfill, progressborder, progressfill, percent
);
+
progressbarRender(x, y, w, h, percent, progressfill, themeGetDefault()
);
}
#endif
}
#endif
This page took
0.026234 seconds
and
4
git commands to generate.