aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-07 21:26:32 +0200
committerTectu <joel@unormal.org>2012-06-07 21:26:32 +0200
commitd39e376c8b945f70afdf49a0cf7dc39e8d242a12 (patch)
tree51f6400b4dddc5e84278d4eebe44a4c9974aac78
parente42ed87364921b53853d7a7e4fa3e0fd32e23b9e (diff)
downloaduGFX-d39e376c8b945f70afdf49a0cf7dc39e8d242a12.tar.gz
uGFX-d39e376c8b945f70afdf49a0cf7dc39e8d242a12.tar.bz2
uGFX-d39e376c8b945f70afdf49a0cf7dc39e8d242a12.zip
fixes
-rw-r--r--gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui.c b/gui.c
index 2b504482..63bd97b0 100644
--- a/gui.c
+++ b/gui.c
@@ -40,10 +40,10 @@ Thread *guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, unsign
buttonStruct = chHeapAlloc(NULL, sizeof(struct buttonStruct_t));
- buttonStruct->x0 = 100;
- buttonStruct->y0 = 100;
- buttonStruct->x1 = 200;
- buttonStruct->y1 = 200;
+ buttonStruct->x0 = x0;
+ buttonStruct->y0 = y0;
+ buttonStruct->x1 = x1;
+ buttonStruct->y1 = y1;
buttonStruct->state = state;
lcdDrawRectString(x0, y0, x1, y1, str, fontColor, buttonColor);