[cheese] window: create textures for all detected effects



commit 93c8e165981c32438099962d694fe83c0204ded9
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Mon Aug 9 20:03:26 2010 +0200

    window: create textures for all detected effects

 src/cheese-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 6a12427..2064938 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -720,7 +720,7 @@ public class Cheese.MainWindow : Gtk.Window
     viewport_layout.add ((Clutter.Actor)current_effects_grid);
     this.current_effects_grid.set_size (viewport.width, viewport.height);
 
-    for (int i = 0; i < effects_manager.effects.size - 1; i++)
+    for (int i = 0; i < effects_manager.effects.size; i++)
     {
       int           page_of_effect = i / EFFECTS_PER_PAGE;
       Cheese.Effect effect         = effects_manager.effects[i];
@@ -812,7 +812,7 @@ public class Cheese.MainWindow : Gtk.Window
         grid.row_spacing    = 20;
       }
 
-      for (int i = 0; i < effects_manager.effects.size - 1; i++)
+      for (int i = 0; i < effects_manager.effects.size; i++)
       {
         Effect            effect  = effects_manager.effects[i];
         Clutter.Texture   texture = new Clutter.Texture ();



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