diff options
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r-- | apps/plugins/text_editor.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 32013b6f28..6c1136cf48 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c | |||
@@ -287,12 +287,10 @@ static int do_item_menu(int cur_sel) | |||
287 | } | 287 | } |
288 | 288 | ||
289 | #ifdef HAVE_LCD_COLOR | 289 | #ifdef HAVE_LCD_COLOR |
290 | /* in misc.h but no need to polute the api */ | 290 | |
291 | #define toupper(c) (((c >= 'a') && (c <= 'z'))?c+'A':c) | ||
292 | #define isxdigit(c) ((c>='a' && c<= 'f') || (c>='A' && c<= 'F') \ | ||
293 | || (c>='0' && c<= '9')) | ||
294 | #define hex2dec(c) (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : \ | 291 | #define hex2dec(c) (((c) >= '0' && ((c) <= '9')) ? (toupper(c)) - '0' : \ |
295 | (toupper(c)) - 'A' + 10) | 292 | (toupper(c)) - 'A' + 10) |
293 | |||
296 | static int my_hex_to_rgb(const char* hex, int* color) | 294 | static int my_hex_to_rgb(const char* hex, int* color) |
297 | { int ok = 1; | 295 | { int ok = 1; |
298 | int i; | 296 | int i; |