The source image has already been scaled and cropped, so adjust the
source crop accordingly
Change-Id: Ife09a8eecb4e20c60a8e8ef54164e1a14c5a2718
Signed-off-by: Greg Hackmann <ghackmann@google.com>
gsc.current_buf = (gsc.current_buf + 1) % NUM_GSC_DST_BUFS;
private_handle_t *dst_handle =
private_handle_t::dynamicCast(dst_buf);
- exynos5_config_handle(dst_handle, layer.sourceCrop,
+ hwc_rect_t sourceCrop = { 0, 0,
+ WIDTH(layer.displayFrame), HEIGHT(layer.displayFrame) };
+ exynos5_config_handle(dst_handle, sourceCrop,
layer.displayFrame, layer.blending, config[i]);
}
else {