mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
||||
if (!libretro_running)
|
||||
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)
|
||||
{
|
||||
background_rendered = true;
|
||||
|
@ -595,6 +595,12 @@ void menu_display_frame_background(
|
||||
|
||||
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
|
||||
|
||||
const char *menu_video_get_ident(void)
|
||||
|
@ -123,6 +123,8 @@ void menu_display_frame_background(
|
||||
size_t vertex_count,
|
||||
enum menu_display_prim_type prim_type
|
||||
);
|
||||
|
||||
void menu_display_clear_color(void *data, float r, float g, float b, float a);
|
||||
#endif
|
||||
|
||||
const char *menu_video_get_ident(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user