Web lists-archives.com

[MPlayer-dev-eng] [PATCH 2/3] video_out: compute right and bottom border in calc_src_dst_rects().




---
 libvo/video_out.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvo/video_out.c b/libvo/video_out.c
index 46e3a5f..fbf9009 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -458,6 +458,8 @@ void calc_src_dst_rects(int src_width, int src_height, struct vo_rect *src, stru
     if (borders) {
       borders->left = apply_border_pos(vo_dwidth,  scaled_width,  vo_border_pos_x);
       borders->top  = apply_border_pos(vo_dheight, scaled_height, vo_border_pos_y);
+      borders->right  = vo_dwidth  - scaled_width  - borders->left;
+      borders->bottom = vo_dheight - scaled_height - borders->top;
     }
     src_dst_split_scaling(src_width, vo_dwidth, scaled_width, vo_border_pos_x,
                           &src->left, &src->right, &dst->left, &dst->right);
-- 
2.1.4

_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng