From: "Sung W. Park" <sungwoo@gmail.com>

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
This commit is contained in:
Sung W. Park 2011-03-10 08:23:39 +00:00 committed by Carsten Haitzler
parent 8fe5c5ce54
commit 37c3f59341
2 changed files with 6 additions and 2 deletions

View File

@ -151,3 +151,7 @@
* 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.

View 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
{