diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cursor.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c b/drivers/gpu/drm/radeon/radeon_cursor.c index fb16070b266e..4a4f9533c53b 100644 --- a/drivers/gpu/drm/radeon/radeon_cursor.c +++ b/drivers/gpu/drm/radeon/radeon_cursor.c | |||
@@ -205,8 +205,8 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y) | |||
205 | } | 205 | } |
206 | 206 | ||
207 | if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) || | 207 | if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) || |
208 | x >= (crtc->x + crtc->mode.crtc_hdisplay) || | 208 | x >= (crtc->x + crtc->mode.hdisplay) || |
209 | y >= (crtc->y + crtc->mode.crtc_vdisplay)) | 209 | y >= (crtc->y + crtc->mode.vdisplay)) |
210 | goto out_of_bounds; | 210 | goto out_of_bounds; |
211 | 211 | ||
212 | x += xorigin; | 212 | x += xorigin; |