chiark / gitweb /
In the Java front end, don't try to guess the puzzle rectangle's
authorSimon Tatham <anakin@pobox.com>
Sat, 6 Nov 2010 18:14:41 +0000 (18:14 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 6 Nov 2010 18:14:41 +0000 (18:14 +0000)
commit9cfc61c5f7f64ed382e946a2c69d6857eb494590
treee451a428d960aa848d862636d3bbdf5aa13355da
parent4d41f0f7178a55dfdce23e5bd5b9c3095ca1754e
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.)

[originally from svn r9022]
PuzzleApplet.java
nestedvm.c