summaryrefslogtreecommitdiff
path: root/src/modules/evas
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-04-03 12:26:46 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-04-04 10:08:09 +0900
commit018e2d33b2ed1907ae60ab0a795b66b4e756637e (patch)
tree4d7c45d6f4a7a5f9e0393534cb8352cf993aa8a1 /src/modules/evas
parent77d0d69c3ec24acee0e22d99bcbf8f816c2b0353 (diff)
downloadefl-018e2d33b2ed1907ae60ab0a795b66b4e756637e.tar.gz
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
Diffstat (limited to 'src/modules/evas')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c6
1 files 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 c43a924173..66abc1eee3 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++)
{