mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 01:30:51 +00:00
(XMB Ribbon) Make gradient background transparent when libretro
core is running
This commit is contained in:
parent
71df73e640
commit
e48e294009
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user