chore: remove keypad icon

This commit is contained in:
TT 2020-01-10 00:26:07 +09:00
parent 0e59f0a82b
commit 38e64a616f

10
ui.c
View file

@ -1342,7 +1342,7 @@ draw_numeric_area_frame(void)
{ {
ili9341_fill(0, 208, 320, 32, 0xffff); ili9341_fill(0, 208, 320, 32, 0xffff);
ili9341_drawstring_5x7(keypad_mode_label[keypad_mode], 10, 220, 0x0000, 0xffff); ili9341_drawstring_5x7(keypad_mode_label[keypad_mode], 10, 220, 0x0000, 0xffff);
ili9341_drawfont(KP_KEYPAD, &NF20x22, 300, 216, 0x0000, 0xffff); //ili9341_drawfont(KP_KEYPAD, &NF20x22, 300, 216, 0x0000, 0xffff);
} }
void void
@ -1948,10 +1948,6 @@ keypad_apply_touch(void)
} }
i++; i++;
} }
if (touch_y > 48 * 4) {
// exit keypad mode
return -2;
}
return -1; return -1;
} }
@ -2105,10 +2101,6 @@ ui_process_keypad(void)
if (key >= 0 && keypad_click(key)) if (key >= 0 && keypad_click(key))
/* exit loop on done or cancel */ /* exit loop on done or cancel */
break; break;
// else if (key == -2) {
// //xxx;
// return;
// }
} }
} }