fixes
This commit is contained in:
parent
e42ed87364
commit
d39e376c8b
1 changed files with 4 additions and 4 deletions
8
gui.c
8
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue