summaryrefslogtreecommitdiffstats
path: root/hw/display/vmware_vga.c
diff options
context:
space:
mode:
authorNicolas Owens2014-06-09 07:19:17 +0200
committerMichael Tokarev2014-06-10 18:06:48 +0200
commite2bb4ae74687c06a256d8058e340295c7a084fe4 (patch)
tree040972ac0d426dcbb8a06f6a5ca06fc36fa13ff9 /hw/display/vmware_vga.c
parentmigration: Plug memory leak in migrate-set-cache-size command (diff)
downloadqemu-e2bb4ae74687c06a256d8058e340295c7a084fe4.tar.gz
qemu-e2bb4ae74687c06a256d8058e340295c7a084fe4.tar.xz
qemu-e2bb4ae74687c06a256d8058e340295c7a084fe4.zip
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>
Diffstat (limited to 'hw/display/vmware_vga.c')
-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: