Vincent,
I will add the NEWS and ChangeLog before I leave the office today. I did not
do it now because more fixes are coming.
Dh


-----Original Message-----
From: Enlightenment SVN [mailto:no-re...@enlightenment.org] 
Sent: 21 September 2012 09:18 AM
To: enlightenment-...@lists.sourceforge.net
Subject: E SVN: devilhorns trunk/ecore/src/lib/ecore_x/xlib

Log:
Ecore_X: Fix more randr functions. Properly return output Modes from
  ecore_x_randr_output_modes_get (more memcpy madness).
  
  

Author:       devilhorns
Date:         2012-09-21 01:17:35 -0700 (Fri, 21 Sep 2012)
New Revision: 76940
Trac:         http://trac.enlightenment.org/e/changeset/76940

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-21 08:16:50
UTC (rev 76939)
+++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c 2012-09-21 08:17:35
UTC (rev 76940)
@@ -1590,13 +1590,13 @@
      {
         if ((modes = malloc(sizeof(Ecore_X_Randr_Mode) *
output_info->nmode)))
           {
-             memcpy(modes, output_info->modes,
-                    (sizeof(Ecore_X_Randr_Mode) * output_info->nmode));
-             if (num)
-               *num = output_info->nmode;
+             int i = 0;
 
-             if (npreferred)
-               *npreferred = output_info->npreferred;
+             if (num) *num = output_info->nmode;
+             if (npreferred) *npreferred = output_info->npreferred;
+
+             for (i = 0; i < output_info->nmode; i++)
+               modes[i] = output_info->modes[i];
           }
      }
 


----------------------------------------------------------------------------
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
enlightenment-svn mailing list
enlightenment-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to