]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/display/artist: Fix draw_line() artefacts
authorSven Schnelle <svens@stackframe.org>
Sun, 23 Jan 2022 15:47:47 +0000 (16:47 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 2 Feb 2022 17:46:45 +0000 (18:46 +0100)
commitd449eee3af37937f788c02ad88f2caa8bbfb19aa
treeb982aafe81441e7cbf58d794b6d694dc91369832
parent3615cea4714f94d1db61bd6618a3a66a6b014f9d
hw/display/artist: Fix draw_line() artefacts

The draw_line() function left artefacts on the screen because it was using the
x/y variables which were incremented in the loop before. Fix it by using the
unmodified x1/x2 variables instead.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Helge Deller <deller@gmx.de>
hw/display/artist.c