Launcher: Reduce idle redraw frequency
Idle redraw is mainly to update the clock/battery/wifi icons. From 100ms to 1000ms.
This commit is contained in:
parent
1cfa1e530e
commit
a1d5d9e458
@ -38,7 +38,7 @@ Colors are RGB565 and can be represented as integers or hex strings. The special
|
||||
"item_message": "0xBDF7"
|
||||
},
|
||||
"launcher_1": {
|
||||
"__comment": "This section contains launcher theme variant 1",
|
||||
"__comment": "This section contains launcher colors variant 1",
|
||||
"background": "0x0000",
|
||||
"foreground": "0xFFDE",
|
||||
"list_standard_bg": "transparent",
|
||||
@ -47,7 +47,7 @@ Colors are RGB565 and can be represented as integers or hex strings. The special
|
||||
"list_selected_fg": "0xFFFF"
|
||||
},
|
||||
"launcher_2": {
|
||||
"__comment": "This section contains launcher theme variant 2",
|
||||
"__comment": "This section contains launcher colors variant 2",
|
||||
"background": "0x0000",
|
||||
"foreground": "0xFFDE",
|
||||
"list_standard_bg": "transparent",
|
||||
@ -56,7 +56,7 @@ Colors are RGB565 and can be represented as integers or hex strings. The special
|
||||
"list_selected_fg": "0xFFFF"
|
||||
},
|
||||
"launcher_3": {
|
||||
"__comment": "This section contains launcher theme variant 3",
|
||||
"__comment": "This section contains launcher colors variant 3",
|
||||
"background": "0x0000",
|
||||
"foreground": "0xFFDE",
|
||||
"list_standard_bg": "transparent",
|
||||
@ -65,7 +65,7 @@ Colors are RGB565 and can be represented as integers or hex strings. The special
|
||||
"list_selected_fg": "0x0000"
|
||||
},
|
||||
"launcher_4": {
|
||||
"__comment": "This section contains launcher theme variant 4",
|
||||
"__comment": "This section contains launcher colors variant 4",
|
||||
"background": "0x0000",
|
||||
"foreground": "0xFFDE",
|
||||
"list_standard_bg": "transparent",
|
||||
|
||||
@ -485,7 +485,7 @@ void gui_draw_list(tab_t *tab)
|
||||
{
|
||||
char buffer[64];
|
||||
snprintf(buffer, 63, "[%s]", tab->navpath);
|
||||
top += rg_gui_draw_text(0, top, gui.width, buffer, fg[0], bg[0], 0).height;
|
||||
top += rg_gui_draw_text(0, top, gui.width, buffer, gui.theme->foreground, C_TRANSPARENT, 0).height;
|
||||
}
|
||||
|
||||
top += ((gui.height - top) - (lines * line_height)) / 2;
|
||||
|
||||
@ -388,7 +388,8 @@ static void retro_loop(void)
|
||||
prev_joystick = 0;
|
||||
gui_event(TAB_IDLE, tab);
|
||||
next_idle_event = rg_system_timer() + 100000;
|
||||
redraw_pending = true;
|
||||
if (gui.idle_counter % 10 == 1)
|
||||
redraw_pending = true;
|
||||
}
|
||||
else if (gui.idle_counter)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user