From: "Sung W. Park" <sungwoo@gmail.com>
authorSung W. Park <sungwoo@gmail.com>
Thu, 10 Mar 2011 08:23:39 +0000 (08:23 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 10 Mar 2011 08:23:39 +0000 (08:23 +0000)
Subject: [E-devel] Evas - OpenGL and Image Object -
evas_object_image_native_surface_set()

Fix bug with yinvert handling of native surfaces.

SVN revision: 57658

legacy/evas/ChangeLog
legacy/evas/src/modules/engines/gl_common/evas_gl_context.c

index d1b33c3ce9e352980e405dc00868408795972bd8..c9e39b78922461e438e5bbde89d9b2a79d547205 100644 (file)
 
        * Fix bug with evas_object_del() calling DEL callback BEFORE
         the HIDE one.
+
+2011-03-10  Sung W. Park
+
+       * Fix bug with yinvert handling of native surfaces.
index 5006c76eee1dadbde8b64b255daa05dc2d1a9834..93cb47f0bb5246a42dc2800628f7b6df0881c7b3 100644 (file)
@@ -1504,9 +1504,9 @@ again:
    if ((tex->im) && (tex->im->native.data) && (!tex->im->native.yinvert))
      {
         tx1 = ((double)(tex->x) + sx) / (double)tex->pt->w;
-        ty1 = ((double)(tex->y) + sy + sh) / (double)tex->pt->h;
+        ty1 = 1.0 - ((double)(tex->y) + sy) / (double)tex->pt->h;
         tx2 = ((double)(tex->x) + sx + sw) / (double)tex->pt->w;
-        ty2 = ((double)(tex->y) + sy) / (double)tex->pt->h;
+        ty2 = 1.0 - ((double)(tex->y) + sy + sh) / (double)tex->pt->h;
      }
    else
      {