jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=018e2d33b2ed1907ae60ab0a795b66b4e756637e

commit 018e2d33b2ed1907ae60ab0a795b66b4e756637e
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Apr 3 12:26:46 2014 +0900

    Evas gl: Use implicit cast to DATA8 with image.data8
    
    data8 is there precisely to avoid casting the iamge data when
    handling it as DATA8.
    
    This is purely a cosmetic change
---
 src/modules/evas/engines/gl_common/evas_gl_texture.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c 
b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index c43a924..66abc1e 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -1006,7 +1006,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, 
RGBA_Image *im, unsigned int
 
         tpix = alloca(im->cache_entry.h * bytes_count);
         pd = tpix;
-        ps = (unsigned char*) im->image.data;
+        ps = im->image.data8;
         for (i = 0; i < (int)im->cache_entry.h; i++)
           {
              memcpy(pd, ps, bytes_count);
@@ -1021,7 +1021,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, 
RGBA_Image *im, unsigned int
                     fmt, tex->pt->dataformat,
                     tpix);
         pd = tpix;
-        ps = (unsigned char*) im->image.data + (im->cache_entry.w - 1) * 
bytes_count;
+        ps = im->image.data8 + (im->cache_entry.w - 1) * bytes_count;
         for (i = 0; i < (int)im->cache_entry.h; i++)
           {
              memcpy(pd, ps, bytes_count);
@@ -1126,7 +1126,7 @@ evas_gl_common_texture_update(Evas_GL_Texture *tex, 
RGBA_Image *im)
         out = alloca(bytes_count *  EVAS_GL_TILE_SIZE * EVAS_GL_TILE_SIZE);
         xstep = (float)tex->w / (EVAS_GL_TILE_SIZE - 2);
         ystep = (float)tex->h / (EVAS_GL_TILE_SIZE - 1);
-        in = (unsigned char*) im->image.data;
+        in = im->image.data8;
 
         for (y = 0, j = 0; j < EVAS_GL_TILE_SIZE - 1; y += ystep, j++)
           {

-- 


Reply via email to