]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/radeon/kms: fix cursor image off-by-one error
authorNicholas Miell <nmiell@gmail.com>
Fri, 30 Sep 2011 02:07:14 +0000 (19:07 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 3 Oct 2011 17:37:33 +0000 (18:37 +0100)
commitb356fe0afe9aa2cfdc7be0bae22ea1c93afc2451
tree8ca64282680148d30fd37c45723e2cc6736fa350
parent5ba7ddf81634bfdf32d09261d2959e3f5b7c4263
drm/radeon/kms: fix cursor image off-by-one error

The mouse cursor hotspot calculation when the cursor is partially off the
top or left side of the screen was off by one.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41158

Signed-off-by: Nicholas Miell <nmiell@gmail.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cursor.c