Skip to content
Snippets Groups Projects
Commit 021d9833 authored by Romain Vimont's avatar Romain Vimont Committed by Rémi Denis-Courmont
Browse files

vout: fix update of display source crop

If there is no crop, the right and bottom position are the width and the
height, respectively.

Fix regression introduced by 13282687.
parent 768bb549
No related branches found
No related tags found
1 merge request!782vout: fix update of display source crop
Pipeline #148688 passed with stage
in 15 minutes and 52 seconds
......@@ -457,7 +457,9 @@ static int vout_UpdateSourceCrop(vout_display_t *vd)
switch (osys->crop.mode) {
case VOUT_CROP_NONE:
left = top = right = bottom = 0;
left = top = 0;
right = osys->source.i_visible_width;
bottom = osys->source.i_visible_height;
break;
case VOUT_CROP_RATIO:
VoutDisplayCropRatio(&left, &top, &right, &bottom, &osys->source,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment