Commit daf26e96 authored by Steve Lhomme's avatar Steve Lhomme Committed by Thomas Guillem

display: fill the whole video display in non-flat mode

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent e54c9bed
......@@ -231,13 +231,20 @@ void vout_display_PlacePicture(vout_display_place_t *place,
/* And the same but switching width/height */
const int64_t scaled_width = (int64_t)width * display_height * cfg->display.sar.den * source->i_sar_num / height / source->i_sar_den / cfg->display.sar.num;
/* We keep the solution that avoid filling outside the display */
if (scaled_width <= cfg->display.width) {
place->width = scaled_width;
place->height = display_height;
if (source->projection_mode == PROJECTION_MODE_RECTANGULAR) {
/* We keep the solution that avoid filling outside the display */
if (scaled_width <= cfg->display.width) {
place->width = scaled_width;
place->height = display_height;
} else {
place->width = display_width;
place->height = scaled_height;
}
} else {
/* No need to preserve an aspect ratio for 360 video.
* They can fill the display. */
place->width = display_width;
place->height = scaled_height;
place->height = display_height;
}
/* Compute position */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment