diff mbox

hw: vmware_vga: don't return cursorx when the driver asks for cursory register

Message ID 20140609051917.GA17110@iota.offblast.org
State New
Headers show

Commit Message

mischief June 9, 2014, 5:19 a.m. UTC
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>
---
 hw/display/vmware_vga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Tokarev June 10, 2014, 3:40 p.m. UTC | #1
09.06.2014 09:19, mischief wrote:
> 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.

That's a good one.  Thank you, applied to -trivial.

/mjt
diff mbox

Patch

diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index 9ba47e6..ab54b6f 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: