mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Minor cleanup in video_driver.c - call get_viewport_info directly
This commit is contained in:
parent
ba9e78fe99
commit
ca164d1b0f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user