]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Set cursor x/y to 0 when x/yorigin > 0.
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 30 Sep 2011 15:16:53 +0000 (17:16 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 3 Oct 2011 17:37:37 +0000 (18:37 +0100)
commitd6b6303c3906c6da158f937a340511161f94b2d6
tree45ca3c2cb1328057d4e3b9f661fcb3659ad64932
parent0560fe304a9f8440c88e5556186eeb795d04713b
drm/radeon: Set cursor x/y to 0 when x/yorigin > 0.

Apart from the obvious cleanup, this should make the line

cursor_end = x - xorigin + w;

correct now.

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