guiDrawButton return value fix

ugfx_release_2.6
Tectu 2012-06-26 13:46:40 +02:00
parent bbfc18bc27
commit 574f97a7a1
1 changed files with 2 additions and 1 deletions

3
gui.c
View File

@ -125,7 +125,8 @@ uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *
newNode->active = active;
newNode->state = state;
addNode(newNode);
if(addNode(newNode) != 1)
return 0;
lcdDrawRectString(x0, y0, x1, y1, str, fontColor, buttonColor);