diff options
author | Mathias Palmqvist <mathias.palmqvist@sonyericsson.com> | 2010-06-02 16:03:04 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonyericsson.com> | 2010-06-02 16:03:04 +0200 |
commit | a409e195fefcfdc2672418d7ad058f3ff865999e (patch) | |
tree | b1557a25efb78eab452c584b1224217f90ea8ea8 /opengl/libagl | |
parent | f3998f6abc4e0e1cc502bf82f78298a238c340ba (diff) | |
download | frameworks_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.cpp | 4 |
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); |