浏览代码

fix drawings

David 9 年之前
父节点
当前提交
4f2772e8f0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main.qml

+ 2 - 2
main.qml

@@ -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)