mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Remove more video_driver_get_size calls
This commit is contained in:
parent
55b8b8c244
commit
1a30cfea09
@ -249,7 +249,6 @@ void gl_renderchain_render(gl_t *gl,
|
||||
video_shader_ctx_coords_t coords;
|
||||
video_shader_ctx_params_t params;
|
||||
video_shader_ctx_info_t shader_info;
|
||||
unsigned width, height;
|
||||
const struct video_fbo_rect *prev_rect;
|
||||
struct video_tex_info *fbo_info;
|
||||
struct video_tex_info fbo_tex_info[GFX_MAX_SHADERS];
|
||||
@ -257,8 +256,8 @@ void gl_renderchain_render(gl_t *gl,
|
||||
GLfloat xamt, yamt;
|
||||
unsigned fbo_tex_info_cnt = 0;
|
||||
GLfloat fbo_tex_coords[8] = {0.0f};
|
||||
|
||||
video_driver_get_size(&width, &height);
|
||||
unsigned width = video_info->width;
|
||||
unsigned height = video_info->height;
|
||||
|
||||
/* Render the rest of our passes. */
|
||||
gl->coords.tex_coord = fbo_tex_coords;
|
||||
|
@ -562,13 +562,13 @@ static void compute_entries_box(mui_handle_t* mui, int width)
|
||||
|
||||
static void mui_render(void *data)
|
||||
{
|
||||
size_t i = 0;
|
||||
menu_animation_ctx_delta_t delta;
|
||||
float delta_time;
|
||||
unsigned bottom, width, height, header_height;
|
||||
size_t i = 0;
|
||||
mui_handle_t *mui = (mui_handle_t*)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
file_list_t *list = menu_entries_get_selection_buf_ptr(0);
|
||||
file_list_t *list = menu_entries_get_selection_buf_ptr(0);
|
||||
|
||||
if (!mui)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user