On Fri, 29 Apr 2011 15:56:14 +0900 "Sung W. Park" <[email protected]> said:
this is in svn too btw :)
> Hi all,
>
> As I was testing evas_gl, I've ran into a bug when I'm using the
> evas_object_map_*
> functions.
>
> I don't necessarily want to say it's a bug because it did say
> // FIXME: handle yinvert
> ERR("not handling inverted y case for map");
>
> So i'm submitting a patch that handles the yinvert case.
>
> Index: src/modules/engines/gl_common/evas_gl_context.c
> ===================================================================
> --- src/modules/engines/gl_common/evas_gl_context.c (revision 59024)
> +++ src/modules/engines/gl_common/evas_gl_context.c (working copy)
> @@ -2688,8 +2688,12 @@
>
> if ((tex->im) && (tex->im->native.data) && (!tex->im->native.yinvert))
> {
> - // FIXME: handle yinvert
> - ERR("not handling inverted y case for map");
> + for (i = 0; i < 4; i++)
> + {
> + ty[i] = 1.0 - ty[i];
> + if (yuv)
> + t2y[i] = 1.0 - t2y[i];
> + }
> }
>
> cmul = ARGB_JOIN(a, r, g, b);
>
>
> I'm also submitting an example program that you can run to see before and
> after.
>
> let me know if this seems reasonable.
>
> cheers,
> Sung
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [email protected]
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel