simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Jun 21 18:40:30 BST 2014


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10196
Date:           2014-06-21 18:40:29 +0100 (Sat, 21 Jun 2014)

Log message (7 lines):
Fix vertically misaligned text in Javascript puzzles.

When I constructed my test canvas to measure the vertical extent of a
text string for ALIGN_VCENTRE, I forgot to ensure that the 'width'
variable was an integer, as a result of which the loop over canvas
pixels kept trying to use fractional array indices and returning
undefined :-)

Modified files:
U   puzzles/emcclib.js

Links:
http://svn.tartarus.org/sgt/?rev=10196&view=rev
http://svn.tartarus.org/sgt/puzzles/emcclib.js?rev=10196&r1=10195&r2=10196



More information about the tartarus-commits mailing list