X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/3a4d8a99f885909119362e3b9b9b587315d74ad7..46a985dc4e6c6a0cc1a943e58a06d160609f9f13:/project/commands/drawing/cmd_button.c?ds=sidebyside diff --git a/project/commands/drawing/cmd_button.c b/project/commands/drawing/cmd_button.c index bfa321b..9af4310 100644 --- a/project/commands/drawing/cmd_button.c +++ b/project/commands/drawing/cmd_button.c @@ -74,7 +74,7 @@ void cmd_button(uint8_t argc, char **argv) if (argc == 5) { // Render the button with no text - buttonRender(x, y, w, h, (uint16_t)fontcolor, NULL, THEME_DEFAULT); + buttonRender(x, y, w, h, (uint16_t)fontcolor, NULL, themeGetDefault()); } else { @@ -91,7 +91,7 @@ void cmd_button(uint8_t argc, char **argv) *data_ptr++ = '\0'; // Render the button with text - buttonRender(x, y, w, h, (uint16_t)fontcolor, (char *)&data, THEME_DEFAULT); + buttonRender(x, y, w, h, (uint16_t)fontcolor, (char *)&data, themeGetDefault()); } }