Fix incorrect aspect ratio
Fixed an issue whereby the video size reported by the container was used instead of the size after filters and the such were applied. Closes #10. Tested working with 16:9 and 5:4 videos. Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
parent
014e758361
commit
4ef000bb34
|
@ -399,8 +399,8 @@ void retro_run(void)
|
||||||
|
|
||||||
if(updated_video_dimensions == false)
|
if(updated_video_dimensions == false)
|
||||||
{
|
{
|
||||||
mpv_get_property(mpv, "width", MPV_FORMAT_INT64, &width);
|
mpv_get_property(mpv, "dwidth", MPV_FORMAT_INT64, &width);
|
||||||
mpv_get_property(mpv, "height", MPV_FORMAT_INT64, &height);
|
mpv_get_property(mpv, "dheight", MPV_FORMAT_INT64, &height);
|
||||||
|
|
||||||
struct retro_game_geometry geometry = {
|
struct retro_game_geometry geometry = {
|
||||||
.base_width = width,
|
.base_width = width,
|
||||||
|
|
Loading…
Reference in New Issue