summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
diff options
context:
space:
mode:
authorMathias Palmqvist <mathias.palmqvist@sonyericsson.com>2010-06-02 16:03:04 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-06-02 16:03:04 +0200
commita409e195fefcfdc2672418d7ad058f3ff865999e (patch)
treeb1557a25efb78eab452c584b1224217f90ea8ea8 /opengl/libagl
parentf3998f6abc4e0e1cc502bf82f78298a238c340ba (diff)
downloadframeworks_native-a409e195fefcfdc2672418d7ad058f3ff865999e.zip
frameworks_native-a409e195fefcfdc2672418d7ad058f3ff865999e.tar.gz
frameworks_native-a409e195fefcfdc2672418d7ad058f3ff865999e.tar.bz2
Use stride for source and target buffers when copybit is enabled.
Change-Id: Ie651013b3522f8e004685d74190da86433086307
Diffstat (limited to 'opengl/libagl')
-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 81864bd..9d6de72 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);