[four-in-a-row/arnaudb/wip/gtk4: 18/27] Try a fix, 2.



commit 84b1dafee66dbed913eabfdaabe805217e5a6bed
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Apr 19 23:35:56 2020 +0200

    Try a fix, 2.

 src/four-in-a-row.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index e4f7654..caa6d68 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -503,7 +503,7 @@ private class FourInARow : Gtk.Application
             var temp = new Animate (0, this, 2 * n);
             timeout = Timeout.add (SPEED_BLINK, temp.exec);
             while (timeout != 0)
-                main_iteration ();
+                window.queue_draw ();
         }
     }
 
@@ -909,7 +909,7 @@ private class FourInARow : Gtk.Application
 
         column_moveto = c;
         while (timeout != 0)
-            main_iteration ();
+            window.queue_draw ();
         anim = AnimID.HINT;
         var temp = new Animate (0, this);
         timeout = Timeout.add (SPEED_MOVE, temp.exec);


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