aboutsummaryrefslogtreecommitdiffstats
path: root/gui.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-07-09 19:31:24 +0200
committerTectu <joel@unormal.org>2012-07-09 19:31:24 +0200
commit894770e5961c2e356313f9e70a8ea63b763bf9c5 (patch)
treec703a3bb55c7833215af58605b801931a580843c /gui.c
parentd8ea4330304f943a730ce51c3b46d1bcfd7e1261 (diff)
downloaduGFX-894770e5961c2e356313f9e70a8ea63b763bf9c5.tar.gz
uGFX-894770e5961c2e356313f9e70a8ea63b763bf9c5.tar.bz2
uGFX-894770e5961c2e356313f9e70a8ea63b763bf9c5.zip
cleanup
Diffstat (limited to 'gui.c')
-rw-r--r--gui.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gui.c b/gui.c
index 1564fac1..36db6c7c 100644
--- a/gui.c
+++ b/gui.c
@@ -266,9 +266,6 @@ uint8_t guiDrawWheel(uint16_t x0, uint16_t y0, uint16_t radius1, uint16_t radius
uint8_t guiDrawKeymatrix(uint16_t x0, uint16_t y0, uint16_t size, uint16_t space, uint16_t shadow, uint16_t buttonColor, uint16_t fontColor, font_t font, char *label, uint8_t *active, uint8_t *value) {
struct guiNode_t *newNode;
- uint16_t off;
- uint8_t keyActive = active;
- uint8_t key_7_state;
newNode = chHeapAlloc(NULL, sizeof(struct guiNode_t));
if(newNode == NULL)
@@ -285,9 +282,7 @@ uint8_t guiDrawKeymatrix(uint16_t x0, uint16_t y0, uint16_t size, uint16_t space
if(addElement(newNode) != 1)
return 0;
- off = size + space;
-
- guiDrawButton(x0, y0, x0+size, y0+size, "7", font, fontColor, buttonColor, shadow, "key_7", &keyActive, &key_7_state);
+ // lcdDraw functions
chHeapFree(newNode);