mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Implement menu_display_clear_color
This commit is contained in:
parent
0d6ea9c0ff
commit
399d1e8fb7
@ -731,16 +731,19 @@ static void glui_frame(void)
|
|||||||
white_transp_bg[15] = 0.90;
|
white_transp_bg[15] = 0.90;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_display_frame_background(menu, settings,
|
if (libretro_running)
|
||||||
gl, width, height,
|
|
||||||
glui->textures.white, 0.75f, false,
|
|
||||||
&white_transp_bg[0], &white_bg[0],
|
|
||||||
&glui_vertexes[0], &glui_tex_coords[0], 4,
|
|
||||||
MENU_DISPLAY_PRIM_TRIANGLESTRIP);
|
|
||||||
|
|
||||||
|
|
||||||
if (!libretro_running)
|
|
||||||
{
|
{
|
||||||
|
menu_display_frame_background(menu, settings,
|
||||||
|
gl, width, height,
|
||||||
|
glui->textures.white, 0.75f, false,
|
||||||
|
&white_transp_bg[0], &white_bg[0],
|
||||||
|
&glui_vertexes[0], &glui_tex_coords[0], 4,
|
||||||
|
MENU_DISPLAY_PRIM_TRIANGLESTRIP);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
menu_display_clear_color(gl, 1.0f, 1.0f, 1.0f, 0.75f);
|
||||||
|
|
||||||
if (glui->textures.bg.id)
|
if (glui->textures.bg.id)
|
||||||
{
|
{
|
||||||
background_rendered = true;
|
background_rendered = true;
|
||||||
|
@ -595,6 +595,12 @@ void menu_display_frame_background(
|
|||||||
|
|
||||||
gl->coords.color = gl->white_color_ptr;
|
gl->coords.color = gl->white_color_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void menu_display_clear_color(void *data, float r, float g, float b, float a)
|
||||||
|
{
|
||||||
|
glClearColor(r, g, b, a);
|
||||||
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *menu_video_get_ident(void)
|
const char *menu_video_get_ident(void)
|
||||||
|
@ -123,6 +123,8 @@ void menu_display_frame_background(
|
|||||||
size_t vertex_count,
|
size_t vertex_count,
|
||||||
enum menu_display_prim_type prim_type
|
enum menu_display_prim_type prim_type
|
||||||
);
|
);
|
||||||
|
|
||||||
|
void menu_display_clear_color(void *data, float r, float g, float b, float a);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *menu_video_get_ident(void);
|
const char *menu_video_get_ident(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user