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>
ui/vnc: avoid memory corruption if width % VNC_DIRTY_PIXELS_PER_BIT != 0

during resolution change in Windows 7 it happens sometimes that Windows changes to
an intermediate resolution where server_stride % cmp_bytes != 0 (in vnc_refresh_server_surface).
The problem that causes memory corruption is where the guest fb is copied to the server fb.
It could be easily fixed by truncating cmp_bytes in vnc_refresh_server_surface. But by looking at
the code it seems that none of the encoders called in vnc_send_framebuffer_update really cares about
w > pixman_image_get_width(vd->server). This patch will therefore remove all DIV_ROUND_UPs for
now to avoid corruption or illegal reads. I think there are really almost no real resultions out
there where width % 16 != 0. If we really find some we might need to either decrease
VNC_DIRTY_PIXELS_PER_BIT or make it dynamic depending on the resolution.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>