From e2bb4ae74687c06a256d8058e340295c7a084fe4 Mon Sep 17 00:00:00 2001 From: Nicolas Owens Date: Sun, 8 Jun 2014 22:19:17 -0700 Subject: 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 Signed-off-by: Michael Tokarev --- hw/display/vmware_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/display/vmware_vga.c') 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: -- cgit v1.2.3-55-g7522