[gnome-games] glines: fix drawing of non-square fields



commit 11285353db836a7038f6d829482720291a1d1eaa
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Tue Nov 30 22:05:48 2010 +0100

    glines: fix drawing of non-square fields

 glines/glines.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index 98c5e44..3f87245 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -867,8 +867,8 @@ field_draw_callback (GtkWidget * widget, cairo_t *cr)
   guint i, j, idx;
   GdkColor cursorColor;
 
-  for (i = 0; i < hfieldsize; i++) {
-    for (j = 0; j < vfieldsize; j++) {
+  for (i = 0; i < vfieldsize; i++) {
+    for (j = 0; j < hfieldsize; j++) {
       int phase, color;
 
       idx = j + i * hfieldsize;



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