you know what you have forgotten, right ?

Vincent

On Mon, Sep 10, 2012 at 12:46 PM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
> Ecore_X (randr): Correctly list crtcs also (same fix as outputs).
>
>
>
> Author:       devilhorns
> Date:         2012-09-10 03:46:07 -0700 (Mon, 10 Sep 2012)
> New Revision: 76392
> Trac:         http://trac.enlightenment.org/e/changeset/76392
>
> Modified:
>   trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c
>
> Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c 2012-09-10 10:41:25 
> UTC (rev 76391)
> +++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c 2012-09-10 10:46:07 
> UTC (rev 76392)
> @@ -532,8 +532,12 @@
>       {
>          if ((ret = malloc(sizeof(Ecore_X_Randr_Crtc) * res->ncrtc)))
>            {
> -             memcpy(ret, res->crtcs, (sizeof(Ecore_X_Randr_Crtc) * 
> res->ncrtc));
> -             *num = res->ncrtc;
> +             int i = 0;
> +
> +             if (num) *num = res->ncrtc;
> +
> +             for (i = 0; i < res->ncrtc; i++)
> +               ret[i] = res->crtcs[i];
>            }
>
>          XRRFreeScreenResources(res);
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to