svn path=/trunk/gtk-sharp/; revision=6494
This commit is contained in:
Duncan Mak 2002-08-07 05:50:48 +00:00
parent b2f1f53188
commit 56df396225

View file

@ -32,7 +32,7 @@ public class Fifteen
Alignment alignment = new Alignment (0.5f, 0.5f, 0.0f, 0.0f); Alignment alignment = new Alignment (0.5f, 0.5f, 0.0f, 0.0f);
vbox.PackStart (alignment, true, true, 0); vbox.PackStart (alignment, true, true, 0);
Frame frame = new Frame (String.Empty); Frame frame = new Frame (null);
frame.ShadowType = ShadowType.In; frame.ShadowType = ShadowType.In;
alignment.Add (frame); alignment.Add (frame);
@ -194,9 +194,8 @@ public class Fifteen
x = -1; x = -1;
else if ((dir == 3) && ((position % 4) != 3)) // right else if ((dir == 3) && ((position % 4) != 3)) // right
x = 1; x = 1;
else { else
goto retry; goto retry;
}
int old_position = position + y * 4 + x; int old_position = position + y * 4 + x;
board [position] = board [old_position]; board [position] = board [old_position];