瀏覽代碼

fixed drawRect with lines (see #776)

Nicolas Cannasse 5 年之前
父節點
當前提交
d66943df76
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      h2d/Graphics.hx

+ 7 - 0
h2d/Graphics.hx

@@ -464,6 +464,13 @@ class Graphics extends Drawable {
 		lineTo(x + w, y + h);
 		lineTo(x + w, y + h);
 		lineTo(x, y + h);
 		lineTo(x, y + h);
 		lineTo(x, y);
 		lineTo(x, y);
+		var e = 0.01; // see #776
+		tmpPoints[0].x += e;
+		tmpPoints[0].y += e;
+		tmpPoints[1].y += e;
+		tmpPoints[3].x += e;
+		tmpPoints[4].x += e;
+		tmpPoints[4].y += e;
 		flush();
 		flush();
 	}
 	}