eek - case of stride value being wrong! fix!
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Nov 2010 08:18:16 +0000 (08:18 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Nov 2010 08:18:16 +0000 (08:18 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@54087 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_image.c
src/modules/engines/gl_x11/evas_engine.c

index fa5fb4b..c58ca16 100644 (file)
@@ -697,7 +697,7 @@ EAPI void
 evas_object_image_size_set(Evas_Object *obj, int w, int h)
 {
    Evas_Object_Image *o;
-   int stride;
+   int stride = 0;
 
    MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
    return;
@@ -2243,7 +2243,7 @@ evas_object_image_load(Evas_Object *obj)
    if (o->engine_data)
      {
        int w, h;
-       int stride;
+       int stride = 0;
 
        obj->layer->evas->engine.func->image_size_get
            (obj->layer->evas->engine.data.output,
index e40bcd6..990c7a9 100644 (file)
@@ -1749,7 +1749,7 @@ static void
 eng_image_stride_get(void *data __UNUSED__, void *image, int *stride)
 {
    Evas_GL_Image *im = image;
-   *stride = im->w;
+   *stride = im->w * 4;
    if ((im->tex) && (im->tex->pt->dyn.img))
      {
         *stride = im->tex->pt->dyn.w * 4;