未验证 提交 d03b25b0 编写于 作者: E Evezerest 提交者: GitHub

Update shape.py

上级 81f29c93
...@@ -126,8 +126,7 @@ class Shape(object): ...@@ -126,8 +126,7 @@ class Shape(object):
color = self.select_line_color if self.selected else self.line_color color = self.select_line_color if self.selected else self.line_color
pen = QPen(color) pen = QPen(color)
# Try using integer sizes for smoother drawing(?) # Try using integer sizes for smoother drawing(?)
# no need, it casuses that font is too small in high-resolusion image pen.setWidth(max(1, int(round(2.0 / self.scale))))
# pen.setWidth(max(1, int(round(2.0 / self.scale))))
painter.setPen(pen) painter.setPen(pen)
line_path = QPainterPath() line_path = QPainterPath()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册