mirror of
https://github.com/libretro/RetroArch
synced 2025-03-26 02:37:23 +00:00
Cleanups
This commit is contained in:
parent
439b761410
commit
0c65efdd65
@ -407,7 +407,8 @@ static void glui_frame(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
menu_video_frame_background(menu, settings,
|
menu_video_frame_background(menu, settings,
|
||||||
gl, glui->textures.bg.id, 0.75f, false,
|
gl, width, height,
|
||||||
|
glui->textures.bg.id, 0.75f, false,
|
||||||
&coord_color[0], &coord_color2[0],
|
&coord_color[0], &coord_color2[0],
|
||||||
&glui_vertexes[0], &glui_tex_coords[0]);
|
&glui_vertexes[0], &glui_tex_coords[0]);
|
||||||
|
|
||||||
|
@ -1579,7 +1579,7 @@ static void xmb_frame(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
menu_video_frame_background(menu, settings,
|
menu_video_frame_background(menu, settings,
|
||||||
gl, xmb->textures.bg.id, xmb->alpha, false, &coord_color[0],
|
gl, width, height, xmb->textures.bg.id, xmb->alpha, false, &coord_color[0],
|
||||||
&coord_color2[0], &rmb_vertex[0], &rmb_tex_coord[0]);
|
&coord_color2[0], &rmb_vertex[0], &rmb_tex_coord[0]);
|
||||||
|
|
||||||
xmb_draw_text(menu, xmb,
|
xmb_draw_text(menu, xmb,
|
||||||
@ -1675,6 +1675,7 @@ static void xmb_frame(void)
|
|||||||
if (render_background)
|
if (render_background)
|
||||||
{
|
{
|
||||||
menu_video_frame_background(menu, settings, gl,
|
menu_video_frame_background(menu, settings, gl,
|
||||||
|
width, height,
|
||||||
xmb->textures.bg.id, xmb->alpha, true,
|
xmb->textures.bg.id, xmb->alpha, true,
|
||||||
&coord_color[0], &coord_color2[0],
|
&coord_color[0], &coord_color2[0],
|
||||||
&rmb_vertex[0], &rmb_tex_coord[0]);
|
&rmb_vertex[0], &rmb_tex_coord[0]);
|
||||||
|
@ -53,6 +53,8 @@ void menu_video_frame_background(
|
|||||||
menu_handle_t *menu,
|
menu_handle_t *menu,
|
||||||
settings_t *settings,
|
settings_t *settings,
|
||||||
gl_t *gl,
|
gl_t *gl,
|
||||||
|
unsigned width,
|
||||||
|
unsigned height,
|
||||||
GLuint texture,
|
GLuint texture,
|
||||||
float handle_alpha,
|
float handle_alpha,
|
||||||
bool force_transparency,
|
bool force_transparency,
|
||||||
@ -62,7 +64,6 @@ void menu_video_frame_background(
|
|||||||
const GRfloat *tex_coord)
|
const GRfloat *tex_coord)
|
||||||
{
|
{
|
||||||
struct gfx_coords coords;
|
struct gfx_coords coords;
|
||||||
unsigned width, height;
|
|
||||||
|
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
@ -83,8 +84,6 @@ void menu_video_frame_background(
|
|||||||
&& texture)
|
&& texture)
|
||||||
coords.color = (const float*)coord_color2;
|
coords.color = (const float*)coord_color2;
|
||||||
|
|
||||||
video_driver_get_size(&width, &height);
|
|
||||||
|
|
||||||
menu_video_draw_frame(0, 0, width, height,
|
menu_video_draw_frame(0, 0, width, height,
|
||||||
gl->shader, &coords,
|
gl->shader, &coords,
|
||||||
&gl->mvp_no_rot, true, texture);
|
&gl->mvp_no_rot, true, texture);
|
||||||
|
@ -40,6 +40,7 @@ void menu_video_frame_background(
|
|||||||
menu_handle_t *menu,
|
menu_handle_t *menu,
|
||||||
settings_t *settings,
|
settings_t *settings,
|
||||||
gl_t *gl,
|
gl_t *gl,
|
||||||
|
unsigned width, unsigned height,
|
||||||
GLuint texture,
|
GLuint texture,
|
||||||
float handle_alpha,
|
float handle_alpha,
|
||||||
bool force_transparency,
|
bool force_transparency,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user