summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorOmprakash Dhyade <odhyade@codeaurora.org>2010-01-26 10:58:42 -0800
committerEmilio López <turl@tuxfamily.org>2011-09-24 20:14:21 +0000
commit07f66eac41658fe67d84befad99f1ab5ed1c6c1d (patch)
treeb6900a1d23216e0fb2948ea96acd4e1ec2a3af75 /opengl
parent755df7c2f0009cfba85093a201fa9d9a7a224718 (diff)
downloadframeworks_base-07f66eac41658fe67d84befad99f1ab5ed1c6c1d.zip
frameworks_base-07f66eac41658fe67d84befad99f1ab5ed1c6c1d.tar.gz
frameworks_base-07f66eac41658fe67d84befad99f1ab5ed1c6c1d.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: I3a8fca52c015d91fe567e7bb4e7669ce6d8a7d82 CRs-fixed: 251015
Diffstat (limited to 'opengl')
-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 fd0bb58..b83928a 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);