From 549f3b19d71119137b54bed3ae63611779342d1d Mon Sep 17 00:00:00 2001 From: Saurabh Shah Date: Tue, 31 Jul 2012 10:49:02 -0700 Subject: [PATCH] hwc: video: Update destination x, y Update destination x, y after an out-of-bounds video's bounds are recalculated for crop and destination position. Change-Id: I5419f7ae054f709111c39d79ec721686f474ae53 --- libhwcomposer/hwc_video.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhwcomposer/hwc_video.cpp b/libhwcomposer/hwc_video.cpp index e2d9be2..4e7bc5f 100644 --- a/libhwcomposer/hwc_video.cpp +++ b/libhwcomposer/hwc_video.cpp @@ -160,6 +160,8 @@ bool configPrimVid(hwc_context_t *ctx, hwc_layer_t *layer) { dcrop.w = sourceCrop.right - sourceCrop.left; dcrop.h = sourceCrop.bottom - sourceCrop.top; + dpos.x = displayFrame.left; + dpos.y = displayFrame.top; dpos.w = displayFrame.right - displayFrame.left; dpos.h = displayFrame.bottom - displayFrame.top; }