|
|
@@ -140,7 +140,7 @@ ApplicationWindow {
|
|
|
lastpoint = pts[pts.length-1];
|
|
|
|
|
|
pts.push(p)
|
|
|
- /*socket.send_point(p);*/
|
|
|
+ socket.send_point(normalizeTo800by600(p));
|
|
|
if (lastpoint) {
|
|
|
markDirty(Qt.rect(Math.min(p.x,lastpoint.x),Math.min(p.y,lastpoint.y), Math.abs(p.x-lastpoint.x)+4, Math.abs(p.y-lastpoint.y)+4));
|
|
|
|
|
|
@@ -208,7 +208,7 @@ ApplicationWindow {
|
|
|
if (!socket.isOpen)
|
|
|
return
|
|
|
var point = { x: mouse.x, y: mouse.y }
|
|
|
- if (distance(last_point, point) <= 31) //distance returns squared dsitance
|
|
|
+ if (distance(last_point, point) <= 200) //distance returns squared dsitance
|
|
|
return;
|
|
|
last_point = point
|
|
|
canvas.add_point(point)
|