Skip to content
This repository
Browse code

Explicitly close circles; it makes Opera happy

  • Loading branch information...
commit 337a052319133e9df51b0e6361c604c2728ac813 1 parent b181efd
Chris Smith authored September 06, 2011

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  web/draw.js
2  web/draw.js
@@ -359,6 +359,7 @@ function display(ctx, p, a, b, c, d, e, f)
359 359
         ctx.transform(a, b, c, d, e, f);
360 360
         ctx.beginPath();
361 361
         if (r > 0) ctx.arc(0, 0, r, 0, 2 * Math.PI, false);
  362
+        ctx.closePath();
362 363
         ctx.restore();
363 364
         ctx.stroke();
364 365
     }
@@ -372,6 +373,7 @@ function display(ctx, p, a, b, c, d, e, f)
372 373
         if (w > 0) ctx.lineWidth = w;
373 374
         ctx.beginPath();
374 375
         if (r > 0) ctx.arc(0, 0, r, 0, 2 * Math.PI, false);
  376
+        ctx.closePath();
375 377
         if (w > 0)
376 378
         {
377 379
             ctx.stroke();

0 notes on commit 337a052

Please sign in to comment.
Something went wrong with that request. Please try again.