Reverts previous aspect ratio fix and adds rotation correction. Now both horizontal and vertical games are in the correct DAR.

This commit is contained in:
dankcushions 2016-08-14 02:36:40 +01:00
parent b7e3448714
commit d246d02c12

View File

@ -171,7 +171,7 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
info->geometry.base_height = height;
info->geometry.max_width = width;
info->geometry.max_height = height;
info->geometry.aspect_ratio = 0;
info->geometry.aspect_ratio = rotated ? (float)videoConfig.aspect_y / (float)videoConfig.aspect_x : (float)videoConfig.aspect_x / (float)videoConfig.aspect_y;
info->timing.fps = Machine->drv->frames_per_second;
info->timing.sample_rate = sample_rate;
}