Minor cleanup in video_driver.c - call get_viewport_info directly

This commit is contained in:
libretroadmin 2023-04-23 18:23:18 +02:00
parent ba9e78fe99
commit ca164d1b0f

View File

@ -995,7 +995,8 @@ void recording_dump_frame(
vp.full_width = 0;
vp.full_height = 0;
video_driver_get_viewport_info(&vp);
if (video_st->current_video && video_st->current_video->viewport_info)
video_st->current_video->viewport_info(video_st->data, &vp);
if (!vp.width || !vp.height)
{
@ -3560,7 +3561,7 @@ bool video_driver_init_internal(bool *video_is_threaded, bool verbosity_enabled)
custom_vp->width = width;
custom_vp->height = height;
video_driver_get_viewport_info(custom_vp);
video_st->current_video->viewport_info(video_st->data, custom_vp);
}
video_driver_set_rotation(retroarch_get_rotation() % 4);