simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Nov 6 18:14:41 GMT 2010


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9022
Date:           2010-11-06 18:14:41 +0000 (Sat, 06 Nov 2010)

Log message (10 lines):
In the Java front end, don't try to guess the puzzle rectangle's
width and height by assuming mirror symmetry within the containing
applet area. Instead, use the proper width and height as given back
by the C sizing function.

(In particular, this fixes a bug where the non-blanked puzzle area
appeared too tall by the height of the menu bar, probably as a
result of confusing PuzzleApplet.getHeight() with
PuzzlePanel.getHeight(). But the mirroring approach was conceptually
wrong anyway.)

Modified files:
U   puzzles/PuzzleApplet.java
U   puzzles/nestedvm.c

Links:
http://svn.tartarus.org/sgt/?rev=9022&view=rev
http://svn.tartarus.org/sgt/puzzles/PuzzleApplet.java?rev=9022&r1=9021&r2=9022
http://svn.tartarus.org/sgt/puzzles/nestedvm.c?rev=9022&r1=9021&r2=9022



More information about the tartarus-commits mailing list