aboutsummaryrefslogtreecommitdiff
path: root/hw/display/ati.c
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2019-08-11 23:14:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-08-21 10:56:27 +0200
commit50bc6af55eae65768dbc8086e793688ee0bab239 (patch)
tree655bc2ed01e533feccaf07f17a59d2f331f178dc /hw/display/ati.c
parent006388a8c78124eb193027366894fe4568065447 (diff)
downloadqemu-50bc6af55eae65768dbc8086e793688ee0bab239.zip
qemu-50bc6af55eae65768dbc8086e793688ee0bab239.tar.gz
qemu-50bc6af55eae65768dbc8086e793688ee0bab239.tar.bz2
ati-vga: Fix cursor color with guest_hwcursor=true
Fixes: a38127414bd007c5b6ae64c664d9e8839393277e Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: d99f9e07923a74932dbb15e93dd50aa8d2816b19.1565558093.git.balaton@eik.bme.hu Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/ati.c')
-rw-r--r--hw/display/ati.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/ati.c b/hw/display/ati.c
index eb54f68..d372e34 100644
--- a/hw/display/ati.c
+++ b/hw/display/ati.c
@@ -207,7 +207,7 @@ static void ati_cursor_draw_line(VGACommonState *vga, uint8_t *d, int scr_y)
}
} else {
color = (xbits & BIT(7) ? s->regs.cur_color1 :
- s->regs.cur_color0) << 8 | 0xff;
+ s->regs.cur_color0) | 0xff000000;
}
if (vga->hw_cursor_x + i * 8 + j >= h) {
return; /* end of screen, don't span to next line */