]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/display/artist: Fix bug in coordinate extraction in artist_vram_read() and artist_...
authorHelge Deller <deller@gmx.de>
Tue, 25 May 2021 20:12:45 +0000 (22:12 +0200)
committerMichael Roth <michael.roth@amd.com>
Wed, 27 Oct 2021 16:57:47 +0000 (11:57 -0500)
commit62a012b0f40658fe6a5e75a7d6373080dcbcc5dd
tree6d710f0c99ec9c3d5a60a1e5de3174abdd66563f
parent487a0956a1b802d4db37afaeb4b8b8bb9fe1655f
hw/display/artist: Fix bug in coordinate extraction in artist_vram_read() and artist_vram_write()

The CDE desktop on HP-UX 10 shows wrongly rendered pixels when the local screen
menu is closed. This bug was introduced by commit c7050f3f167b
("hw/display/artist: Refactor x/y coordination extraction") which converted the
coordinate extraction in artist_vram_read() and artist_vram_write() to use the
ADDR_TO_X and ADDR_TO_Y macros, but forgot to right-shift the address by 2 as
it was done before.

Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: c7050f3f167b ("hw/display/artist: Refactor x/y coordination extraction")
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Sven Schnelle <svens@stackframe.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <YK1aPb8keur9W7h2@ls3530>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 01f750f5fef1afd8f6abc0548910f87d473e26d5)
Signed-off-by: Michael Roth <michael.roth@amd.com>
hw/display/artist.c