aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Owens <mischief@offblast.org>2014-06-08 22:19:17 -0700
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-10 20:06:48 +0400
commite2bb4ae74687c06a256d8058e340295c7a084fe4 (patch)
tree040972ac0d426dcbb8a06f6a5ca06fc36fa13ff9
parent4380be0e997284159e634100d2f5ec87f944d74d (diff)
hw: vmware_vga: don't return cursorx when the driver asks for cursory register
hello qemu-*@nongnu.org, this is my first contribution. apologies if something is incorrect. this patch fixes vmware_vga.c so that it actually returns the cursory register when asked for, instead of cursorx. Signed-off-by: Nicolas Owens <mischief@offblast.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--hw/display/vmware_vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index 9ba47e6c63..ab54b6fc58 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -863,7 +863,7 @@ static uint32_t vmsvga_value_read(void *opaque, uint32_t address)
break;
case SVGA_REG_CURSOR_Y:
- ret = s->cursor.x;
+ ret = s->cursor.y;
break;
case SVGA_REG_CURSOR_ON: