Add a missing #include.


git-svn-id: svn://svn.tartarus.org/sgt/puzzles@10179 cda61777-01e9-0310-a592-d414129be87e
Change our method of calling main() in emccpre.js.

I've just upgraded to emcc 1.16.0, in which something fiddly has
happened to the semantics of Module.run() vs noInitialRun - now
setting the latter seems to cause the former to do everything except
calling main(), and then refuse to ever do anything again. So now I
have to use Module.callMain() in place of Module.run() when I finally
do get round to wanting to call main().


git-svn-id: svn://svn.tartarus.org/sgt/puzzles@10180 cda61777-01e9-0310-a592-d414129be87e
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 :-)


git-svn-id: svn://svn.tartarus.org/sgt/puzzles@10196 cda61777-01e9-0310-a592-d414129be87e
Merge branch 'upstream'
Bump version number.