diff options
author | Chris Webb | 2010-03-08 15:34:49 +0100 |
---|---|---|
committer | Anthony Liguori | 2010-03-17 16:42:11 +0100 |
commit | cc39a92cbfc80c70d2b83708a4c9b309c3126ac3 (patch) | |
tree | dbab4f5553c9e9bf6428667b3c6ac49ddf082672 /hw/usb-bus.c | |
parent | usb-linux: remove unreachable default in switch statement (diff) | |
download | qemu-cc39a92cbfc80c70d2b83708a4c9b309c3126ac3.tar.gz qemu-cc39a92cbfc80c70d2b83708a4c9b309c3126ac3.tar.xz qemu-cc39a92cbfc80c70d2b83708a4c9b309c3126ac3.zip |
Fix SIGFPE for vnc display of width/height = 1
During boot, the screen gets resized to height 1 and a mouse click at this
point will cause a division by zero when calculating the absolute pointer
position from the pixel (x, y). Return a click in the middle of the screen
instead in this case.
Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-bus.c')
0 files changed, 0 insertions, 0 deletions