소스 검색

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)