Skip to content
  • Helge Deller's avatar
    3615cea4
    hw/display/artist: Mouse cursor fixes for HP-UX · 3615cea4
    Helge Deller authored
    
    
    This patch fix the behaviour and positioning of the X11 mouse cursor in HP-UX.
    
    The current code missed to subtract the offset of the CURSOR_CTRL register from
    the current mouse cursor position. The HP-UX graphics driver stores in this
    register the offset of the mouse graphics compared to the current cursor
    position.  Without this adjustment the mouse behaves strange at the screen
    borders.
    
    Additionally, depending on the HP-UX version, the mouse cursor position
    in the cursor_pos register reports different values. To accommodate this
    track the current min and max reported values and auto-adjust at runtime.
    
    With this fix the mouse now behaves as expected on HP-UX 10 and 11.
    
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    3615cea4
    hw/display/artist: Mouse cursor fixes for HP-UX
    Helge Deller authored
    
    
    This patch fix the behaviour and positioning of the X11 mouse cursor in HP-UX.
    
    The current code missed to subtract the offset of the CURSOR_CTRL register from
    the current mouse cursor position. The HP-UX graphics driver stores in this
    register the offset of the mouse graphics compared to the current cursor
    position.  Without this adjustment the mouse behaves strange at the screen
    borders.
    
    Additionally, depending on the HP-UX version, the mouse cursor position
    in the cursor_pos register reports different values. To accommodate this
    track the current min and max reported values and auto-adjust at runtime.
    
    With this fix the mouse now behaves as expected on HP-UX 10 and 11.
    
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Loading