From 6b7f6b5e8bb850428e3c86a3ca14d5c688d0a3ff Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 27 Jun 2011 21:19:51 -0700 Subject: [PATCH] i965_drv_video: fix subpicture scale factor for Y axis. --- i965_drv_video/i965_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i965_drv_video/i965_render.c b/i965_drv_video/i965_render.c index 1742fe5..d387cb9 100644 --- a/i965_drv_video/i965_render.c +++ b/i965_drv_video/i965_render.c @@ -891,7 +891,7 @@ i965_subpic_render_upload_vertex(VADriverContextP ctx, VARectangle dst_rect; 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.height = sy * (float)obj_subpic->dst_rect.height; -- 2.7.4