Commit 6b7f6b5e authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Xiang, Haihao

i965_drv_video: fix subpicture scale factor for Y axis.

parent 3179d67e
...@@ -891,7 +891,7 @@ i965_subpic_render_upload_vertex(VADriverContextP ctx, ...@@ -891,7 +891,7 @@ i965_subpic_render_upload_vertex(VADriverContextP ctx,
VARectangle dst_rect; VARectangle dst_rect;
dst_rect.x = output_rect->x + sx * (float)obj_subpic->dst_rect.x; dst_rect.x = output_rect->x + sx * (float)obj_subpic->dst_rect.x;
dst_rect.y = output_rect->y + sx * (float)obj_subpic->dst_rect.y; dst_rect.y = output_rect->y + sy * (float)obj_subpic->dst_rect.y;
dst_rect.width = sx * (float)obj_subpic->dst_rect.width; dst_rect.width = sx * (float)obj_subpic->dst_rect.width;
dst_rect.height = sy * (float)obj_subpic->dst_rect.height; dst_rect.height = sy * (float)obj_subpic->dst_rect.height;
......
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