diff options
| author | Simon Tatham <anakin@pobox.com> | 2013-03-31 09:58:48 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2013-03-31 09:58:48 +0000 |
| commit | 75137adf8cfd7d3b2db0b6711af753c205dd0a98 (patch) | |
| tree | f7d3a471bdabedf7d46f020e4c395754c03e16c6 /emcclib.js | |
| parent | 2d2afe9ad4907bd8d802aac68fbf851a64f0c49b (diff) | |
| download | puzzles-75137adf8cfd7d3b2db0b6711af753c205dd0a98.zip puzzles-75137adf8cfd7d3b2db0b6711af753c205dd0a98.tar.gz puzzles-75137adf8cfd7d3b2db0b6711af753c205dd0a98.tar.bz2 puzzles-75137adf8cfd7d3b2db0b6711af753c205dd0a98.tar.xz | |
Oops. I consistently misspelled my desired lineCap and lineJoin values
as "1" rather than "round". Must have had my Postscript brain in,
and/or been confused by lineWidth = "1" just beforehand. This fixes a
display glitch in Towers, where there's a tiny spike at the top left
corner of each tower due to a very sharp mitred line join.
[originally from svn r9791]
Diffstat (limited to 'emcclib.js')
| -rw-r--r-- | emcclib.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -313,8 +313,8 @@ mergeInto(LibraryManager.library, { ctx.moveTo(x1 + 0.5, y1 + 0.5); ctx.lineTo(x2 + 0.5, y2 + 0.5); ctx.lineWidth = width; - ctx.lineCap = '1'; - ctx.lineJoin = '1'; + ctx.lineCap = 'round'; + ctx.lineJoin = 'round'; ctx.strokeStyle = colour; ctx.stroke(); ctx.fillStyle = colour; @@ -342,8 +342,8 @@ mergeInto(LibraryManager.library, { ctx.fill(); } ctx.lineWidth = '1'; - ctx.lineCap = '1'; - ctx.lineJoin = '1'; + ctx.lineCap = 'round'; + ctx.lineJoin = 'round'; ctx.strokeStyle = Pointer_stringify(outline); ctx.stroke(); }, @@ -363,8 +363,8 @@ mergeInto(LibraryManager.library, { ctx.fill(); } ctx.lineWidth = '1'; - ctx.lineCap = '1'; - ctx.lineJoin = '1'; + ctx.lineCap = 'round'; + ctx.lineJoin = 'round'; ctx.strokeStyle = Pointer_stringify(outline); ctx.stroke(); }, |