[PULL v5 08/12] Revert "hw/display/artist: Avoid drawing line when nothing to display"

Helge Deller posted 12 patches 5 years, 5 months ago
Maintainers: Helge Deller <deller@gmx.de>, Richard Henderson <rth@twiddle.net>
[PULL v5 08/12] Revert "hw/display/artist: Avoid drawing line when nothing to display"
Posted by Helge Deller 5 years, 5 months ago
This reverts commit b0f6455feac97e41045ee394e11c24d92c370f6e.
It's wrong. A line could even be a dot.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 hw/display/artist.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/hw/display/artist.c b/hw/display/artist.c
index 47de17b9e9..f37aa9eb49 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) {
--
2.21.3