diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-07-13 16:55:29 +0200 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2010-07-14 09:02:31 +0800 |
commit | baeeaf9e30a33f52afc08e53ea575ab00d11992a (patch) | |
tree | 8fdcb087f1c6cacd95c0c40a3be78429d0f9b803 | |
parent | a02d3c7fa508a8ef4e08399170bba96dd0bf8b6e (diff) | |
download | libva-baeeaf9e30a33f52afc08e53ea575ab00d11992a.tar.gz |
Fix rendering of subpictures.
-rw-r--r-- | i965_drv_video/i965_render.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/i965_drv_video/i965_render.c b/i965_drv_video/i965_render.c index ed1450d..c4e8ed8 100644 --- a/i965_drv_video/i965_render.c +++ b/i965_drv_video/i965_render.c @@ -813,12 +813,8 @@ i965_subpic_render_upload_vertex(VADriverContextP ctx, struct object_surface *obj_surface = SURFACE(surface); struct object_subpic *obj_subpic = SUBPIC(obj_surface->subpic); - const float psx = (float)obj_surface->width / (float)obj_subpic->width; - const float psy = (float)obj_surface->height / (float)obj_subpic->height; - const float ssx = (float)output_rect->width / (float)obj_surface->width; - const float ssy = (float)output_rect->height / (float)obj_surface->height; - const float sx = psx * ssx; - const float sy = psy * ssy; + const float sx = (float)output_rect->width / (float)obj_surface->orig_width; + const float sy = (float)output_rect->height / (float)obj_surface->orig_height; float *vb, tx1, tx2, ty1, ty2, x1, x2, y1, y2; int i = 0; |