gtk+ r20863 - in trunk: . gdk/directfb



Author: matthiasc
Date: Fri Jul 18 19:03:54 2008
New Revision: 20863
URL: http://svn.gnome.org/viewvc/gtk+?rev=20863&view=rev

Log:
Avoid a crash


Modified:
   trunk/ChangeLog
   trunk/gdk/directfb/gdkvisual-directfb.c

Modified: trunk/gdk/directfb/gdkvisual-directfb.c
==============================================================================
--- trunk/gdk/directfb/gdkvisual-directfb.c	(original)
+++ trunk/gdk/directfb/gdkvisual-directfb.c	Fri Jul 18 19:03:54 2008
@@ -137,7 +137,7 @@
      to ensure the base format ARGB LUT8 RGB etc then add ones supported
      by the hardware
    */
-  for (i = 0, c = 0; i < G_N_ELEMENTS (formats); i++)
+  for (i = 0; i < G_N_ELEMENTS (formats); i++)
     {
       IDirectFBSurface    *src;
       DFBAccelerationMask  acc;
@@ -157,8 +157,7 @@
 
       if (acc & DFXL_BLIT || formats[i] == dlc.pixelformat)
         {
-            system_visual = GDK_VISUAL (visuals[c]);
-          c++;
+			system_visual = GDK_VISUAL (visuals[i]);
         }
 
       src->Release (src);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]