This commit is contained in:
twinaphex 2020-09-26 23:33:59 +02:00
parent b830d15628
commit c0470854d4

View File

@ -2844,19 +2844,30 @@ static void stripes_frame(void *data, video_frame_info_t *video_info)
for (i = 0; i <= stripes_list_get_size(stripes, MENU_LIST_HORIZONTAL)
+ stripes->system_tab_end; i++)
{
float color[16];
float rgb[3];
stripes_node_t *node = stripes_get_node(stripes, i);
if (!node)
continue;
float rgb[3];
HSLToRGB(0.07*(float)i,0.5,0.5, &rgb[0]) ;
float color[16] = {
rgb[0], rgb[1], rgb[2], 0.55,
rgb[0], rgb[1], rgb[2], 0.55,
rgb[0], rgb[1], rgb[2], 0.55,
rgb[0], rgb[1], rgb[2], 0.55,
};
color[0] = rgb[0];
color[1] = rgb[1];
color[2] = rgb[2];
color[3] = 0.55;
color[4] = rgb[0];
color[5] = rgb[1];
color[6] = rgb[2];
color[7] = 0.55;
color[8] = rgb[0];
color[9] = rgb[1];
color[10] = rgb[2];
color[11] = 0.55;
color[12] = rgb[0];
color[13] = rgb[1];
color[14] = rgb[2];
color[15] = 0.55;
gfx_display_draw_polygon(
userdata,
@ -2993,7 +3004,7 @@ static void stripes_frame(void *data, video_frame_info_t *video_info)
sizeof(msg));
free(stripes->box_message);
stripes->box_message = NULL;
render_background = true;
render_background = true;
}
if (render_background)