diff options
author | Tectu <joel@unormal.org> | 2012-06-26 13:46:40 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-26 13:46:40 +0200 |
commit | 574f97a7a18d2f708ab3d24037f52b6a5a10a1ea (patch) | |
tree | 79b07faa5f095e327b79b47fc8df6bf6f855a63b | |
parent | bbfc18bc27cac2abc276fe526ad7c8734515f946 (diff) | |
download | uGFX-574f97a7a18d2f708ab3d24037f52b6a5a10a1ea.tar.gz uGFX-574f97a7a18d2f708ab3d24037f52b6a5a10a1ea.tar.bz2 uGFX-574f97a7a18d2f708ab3d24037f52b6a5a10a1ea.zip |
guiDrawButton return value fix
-rw-r--r-- | gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |