提交 b0f6455f 编写于 作者: P Philippe Mathieu-Daudé 提交者: Richard Henderson

hw/display/artist: Avoid drawing line when nothing to display

Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200214001303.12873-5-f4bug@amsat.org>
Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
上级 0814343c
......@@ -579,6 +579,9 @@ static void draw_line(ARTISTState *s, int x1, int y1, int x2, int y2,
} else {
dy = y1 - y2;
}
if (!dx || !dy) {
return;
}
c1 = false;
if (dy > dx) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册