(XMB Ribbon) Make gradient background transparent when libretro

core is running
This commit is contained in:
twinaphex 2016-04-17 06:56:26 +02:00
parent 71df73e640
commit e48e294009
2 changed files with 9 additions and 4 deletions

View File

@ -1915,6 +1915,11 @@ static void xmb_draw_ribbon(menu_display_ctx_draw_t *draw)
1, 1, 1, 1,
};
if (menu_display_ctl(MENU_DISPLAY_CTL_LIBRETRO_RUNNING, NULL))
draw->handle_alpha = 0.75;
else
draw->handle_alpha = 1.00;
menu_display_ctl(MENU_DISPLAY_CTL_DRAW_GRADIENT, draw);
xmb_blend_begin();

View File

@ -504,10 +504,10 @@ bool menu_display_ctl(enum menu_display_ctl_state state, void *data)
const float *new_tex_coord = NULL;
menu_display_ctx_draw_t *draw = (menu_display_ctx_draw_t*)data;
float bg[16] = {
1, 0, 0.1, 1,
1, 0.1, 0, 1,
0.05, 0, 0.05, 1,
0.05, 0, 0.05, 1
1, 0, 0.1, draw->handle_alpha,
1, 0.1, 0, draw->handle_alpha,
0.05, 0, 0.05, draw->handle_alpha,
0.05, 0, 0.05, draw->handle_alpha
};
if (!menu_disp || !draw)