summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmprakash Dhyade <odhyade@codeaurora.org>2010-01-26 10:58:42 -0800
committerSteve Kondik <shade@chemlab.org>2010-08-24 08:00:49 -0400
commit7439f396391aa7736d1b92aab864848f61ff75ea (patch)
treeecd961174247008440aa853fa8a21d0883c89f0a
parentc9090aa88337bbdeff9cc9618eff8d86c1dcec84 (diff)
downloadframeworks_base-7439f396391aa7736d1b92aab864848f61ff75ea.zip
frameworks_base-7439f396391aa7736d1b92aab864848f61ff75ea.tar.gz
frameworks_base-7439f396391aa7736d1b92aab864848f61ff75ea.tar.bz2
frameworks/base/opengl: Change copybit image width to buffer stride
Change copybit image width to buffer stride when copybit is used. Change-Id: If91405e1ed438a514a002402d697d2981b23b750 CRs-fixed: 251015
-rw-r--r--opengl/libagl/egl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index b6e0aae..79c5ecb 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -485,13 +485,13 @@ void egl_window_surface_v2_t::copyBlt(
copybit_device_t* const copybit = blitengine;
if (copybit) {
copybit_image_t simg;
- simg.w = src->width;
+ simg.w = src->stride;
simg.h = src->height;
simg.format = src->format;
simg.handle = const_cast<native_handle_t*>(src->handle);
copybit_image_t dimg;
- dimg.w = dst->width;
+ dimg.w = dst->stride;
dimg.h = dst->height;
dimg.format = dst->format;
dimg.handle = const_cast<native_handle_t*>(dst->handle);