diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index db1e14fe94..331871c5e3 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -407,7 +407,8 @@ static void glui_frame(void) } } 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], &glui_vertexes[0], &glui_tex_coords[0]); diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 2470b865f1..174944c163 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1579,7 +1579,7 @@ static void xmb_frame(void) } 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]); xmb_draw_text(menu, xmb, @@ -1675,6 +1675,7 @@ static void xmb_frame(void) if (render_background) { menu_video_frame_background(menu, settings, gl, + width, height, xmb->textures.bg.id, xmb->alpha, true, &coord_color[0], &coord_color2[0], &rmb_vertex[0], &rmb_tex_coord[0]); diff --git a/menu/menu_video.c b/menu/menu_video.c index 8b1441aefe..53dfa6d7f9 100644 --- a/menu/menu_video.c +++ b/menu/menu_video.c @@ -53,6 +53,8 @@ void menu_video_frame_background( menu_handle_t *menu, settings_t *settings, gl_t *gl, + unsigned width, + unsigned height, GLuint texture, float handle_alpha, bool force_transparency, @@ -62,7 +64,6 @@ void menu_video_frame_background( const GRfloat *tex_coord) { struct gfx_coords coords; - unsigned width, height; global_t *global = global_get_ptr(); @@ -83,8 +84,6 @@ void menu_video_frame_background( && texture) coords.color = (const float*)coord_color2; - video_driver_get_size(&width, &height); - menu_video_draw_frame(0, 0, width, height, gl->shader, &coords, &gl->mvp_no_rot, true, texture); diff --git a/menu/menu_video.h b/menu/menu_video.h index 741259ee0f..84e9bd4904 100644 --- a/menu/menu_video.h +++ b/menu/menu_video.h @@ -40,6 +40,7 @@ void menu_video_frame_background( menu_handle_t *menu, settings_t *settings, gl_t *gl, + unsigned width, unsigned height, GLuint texture, float handle_alpha, bool force_transparency,