mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
MDC UI
This commit is contained in:
parent
48e3ac48cf
commit
eb3695c804
2 changed files with 14 additions and 14 deletions
24
app/menu.c
24
app/menu.c
|
@ -1451,19 +1451,19 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld)
|
||||||
#ifdef ENABLE_MDC1200
|
#ifdef ENABLE_MDC1200
|
||||||
if (UI_MENU_GetCurrentMenuId() == MENU_MDC_ID)
|
if (UI_MENU_GetCurrentMenuId() == MENU_MDC_ID)
|
||||||
{
|
{
|
||||||
// if (edit_index < 0)
|
if (edit_index < 0)
|
||||||
// {
|
{
|
||||||
//// edit_index = 0;
|
edit_index = 0;
|
||||||
//
|
|
||||||
//
|
|
||||||
//// while (edit_index < 4)
|
|
||||||
//// edit[edit_index++] = '_';
|
|
||||||
// edit_index = 0; // 'edit_index' is going to be used as the cursor position
|
|
||||||
// // make a copy so we can test for change when exiting the menu item
|
|
||||||
// memmove(edit_original, edit, sizeof(edit_original));
|
// memmove(edit_original, edit, sizeof(edit_original));
|
||||||
// return;
|
|
||||||
// }
|
// while (edit_index < 4)
|
||||||
// else
|
// edit[edit_index++] = '_';
|
||||||
|
// edit_index = 0; // 'edit_index' is going to be used as the cursor position
|
||||||
|
// make a copy so we can test for change when exiting the menu item
|
||||||
|
memmove(edit_original, edit, sizeof(edit_original));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
if (edit_index >= 0 && edit_index < 4)
|
if (edit_index >= 0 && edit_index < 4)
|
||||||
{ // editing the channel name characters
|
{ // editing the channel name characters
|
||||||
|
|
||||||
|
|
|
@ -700,8 +700,8 @@ void UI_DisplayMenu(void) {
|
||||||
//}
|
//}
|
||||||
// else
|
// else
|
||||||
if(gIsInSubMenu){ // show the channel name being edited
|
if(gIsInSubMenu){ // show the channel name being edited
|
||||||
edit_index= edit_index<0?0:edit_index;
|
// edit_index= edit_index<0?0:edit_index;
|
||||||
// memmove(edit_original, edit, sizeof(edit_original));
|
// memmove(edit_original, edit, sizeof(edit_original));
|
||||||
|
|
||||||
UI_PrintStringSmall(edit, menu_item_x1, menu_item_x2, 3);
|
UI_PrintStringSmall(edit, menu_item_x1, menu_item_x2, 3);
|
||||||
if (edit_index < 4)
|
if (edit_index < 4)
|
||||||
|
|
Loading…
Reference in a new issue