Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
From 4db0a96e077d2a05c53c014e896ce0126cdc59eb Mon Sep 17 00:00:00 2001
From: rsesek
Date: Sat, 11 Dec 2010 19:00:26 +0000
Subject: [PATCH] Clear the canvas before each Draw()
git-svn-id: svn://depot/macosx/RGBConverter/trunk@641 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0
---
RGB Converter.wdgt/Widget.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/RGB Converter.wdgt/Widget.js b/RGB Converter.wdgt/Widget.js
index adb01bf..3184cf0 100644
--- a/RGB Converter.wdgt/Widget.js
+++ b/RGB Converter.wdgt/Widget.js
@@ -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();
--
1.7.11.3