aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2020-08-08 22:22:37 +0200
committerHelge Deller <deller@gmx.de>2020-08-26 23:04:00 +0200
commit8bd0d5b5ef0552d66968a8fdefc5a9080eb358e3 (patch)
tree8b04e7303764eeb9b05fb003c989bc4d3d128f43 /hw
parent84a7b7741a62ede8ff01ae151e59b2a16bda629b (diff)
downloadqemu-8bd0d5b5ef0552d66968a8fdefc5a9080eb358e3.zip
qemu-8bd0d5b5ef0552d66968a8fdefc5a9080eb358e3.tar.gz
qemu-8bd0d5b5ef0552d66968a8fdefc5a9080eb358e3.tar.bz2
Revert "hw/display/artist: Avoid drawing line when nothing to display"
This reverts commit b0f6455feac97e41045ee394e11c24d92c370f6e. It's wrong. A line could even be a dot. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'hw')
-rw-r--r--hw/display/artist.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/display/artist.c b/hw/display/artist.c
index 47de17b..f37aa9e 100644
--- a/hw/display/artist.c
+++ b/hw/display/artist.c
@@ -591,9 +591,6 @@ 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) {