]> git.cworth.org Git - akamaru/commitdiff
Trim akamaru.c #include's.
authorKristian Høgsberg <krh@redhat.com>
Tue, 23 May 2006 23:53:20 +0000 (19:53 -0400)
committerKristian Høgsberg <krh@dinky.bitplanet.net>
Tue, 23 May 2006 23:53:20 +0000 (19:53 -0400)
akamaru.c
main.c

index 8a9e587b40e66da2259011549be4fd2e97820e14..1d94281b269fc936dbeaa830ae44ab4e6e5fbcd1 100644 (file)
--- a/akamaru.c
+++ b/akamaru.c
  *   corrections at the end instead of meaning as it goes.
  */
 
-#include <gtk/gtk.h>
-#include <cairo.h>
-#include <cairo-xlib.h>
-#include <gdk/gdkx.h>
+#include <glib.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/time.h>
+#include <stdarg.h>
 #include <math.h>
 
 #include "akamaru.h"
@@ -157,7 +154,7 @@ model_accumulate_forces (Model *model)
       model->objects[i].force.x * model->objects[i].force.x +
       model->objects[i].force.y * model->objects[i].force.y;
 
-    if (f > 1000000)
+    if (f > 100000000)
       abort();
   }
 }
diff --git a/main.c b/main.c
index 79bf4b546859e17c6bb06457488ce10f6f4b39be..c5b306035975b13392f851d705c9d610a4ae68d5 100644 (file)
--- a/main.c
+++ b/main.c
@@ -250,10 +250,10 @@ model_init_molecule (Model *model)
 static void
 model_init_wobbly (Model *model)
 {
-  const int width = 4, height = 4;
+  const int width = 8, height = 8;
   const int num_objects = width * height;
   const int num_offset_springs = (width - 1) * height + width * (height - 1);
-  const int distance = 20;
+  const int distance = 30;
   double x, y;
   int i, j, object_index, spring_index;
 
@@ -262,7 +262,7 @@ model_init_wobbly (Model *model)
   model->num_objects = num_objects;
   model->offset_springs = g_new (OffsetSpring, num_offset_springs);
   model->num_offset_springs = num_offset_springs;
-  model->k = 6.5;
+  model->k = 4.5;
 
   model_init_polygons (model);
 
@@ -718,7 +718,7 @@ timeout_callback (gpointer data)
 {
   Closure *closure = data;
 
-  model_step (closure->model, 0.4);
+  model_step (closure->model, 0.2);
 
   closure->i++;
   if (closure->i == 1) {