Small fix in canvas-grad

This commit is contained in:
kralyk 2011-07-04 05:48:24 -07:00
parent bd1d1151ed
commit 1ac00c8eff
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ if (canvas.getContext('2d')) {
x = event.clientX,
y = event.clientY,
rx = 600 * x / width,
ry = 600 * y / width;
ry = 600 * y / height;
var xc = ~~(256 * x / width);
var yc = ~~(256 * y / height);