hw: vmware_vga: don't return cursorx when the driver asks for cursory register
authorNicolas Owens <mischief@offblast.org>
Mon, 9 Jun 2014 05:19:17 +0000 (22:19 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Jun 2014 16:06:48 +0000 (20:06 +0400)
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>
hw/display/vmware_vga.c

index 9ba47e6c63706c7e390d745a76eb4d12452dce2a..ab54b6fc58dee52b9cdccd51b6db6d9d074771a8 100644 (file)
@@ -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: