Clear the canvas before each Draw()
authorrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sat, 11 Dec 2010 19:00:26 +0000 (19:00 +0000)
committerrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sat, 11 Dec 2010 19:00:26 +0000 (19:00 +0000)
git-svn-id: svn://depot/macosx/RGBConverter/trunk@641 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0

RGB Converter.wdgt/Widget.js

index adb01bfb4b0a6bc25ad5400ecafe91e38aa9cbde..3184cf0722d12d8b187698ca8c0a177bfbb7c4ca 100644 (file)
@@ -91,6 +91,8 @@ function Draw()
   var center  = [canvas.width / 2, canvas.height / 2];
   context.strokeStyle = 'black';
 
+  context.clearRect(0, 0, canvas.width, canvas.height);
+
   if (backShowing_) {
     // Draw the sheen gradient.
     context.beginPath();