projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d18257
)
radeon: fix minor cursor issues
author
Dave Airlie
<airlied@redhat.com>
Tue, 23 Sep 2008 06:50:39 +0000
(16:50 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 23 Sep 2008 06:50:39 +0000
(16:50 +1000)
linux-core/radeon_cursor.c
patch
|
blob
|
history
diff --git
a/linux-core/radeon_cursor.c
b/linux-core/radeon_cursor.c
index
e71b325
..
d352d10
100644
(file)
--- a/
linux-core/radeon_cursor.c
+++ b/
linux-core/radeon_cursor.c
@@
-196,11
+196,11
@@
int radeon_crtc_cursor_move(struct drm_crtc *crtc,
if (x < 0)
xorigin = -x + 1;
if (y < 0)
- yorigin = -
x
+ 1;
+ yorigin = -
y
+ 1;
if (xorigin >= CURSOR_WIDTH)
xorigin = CURSOR_WIDTH - 1;
- if (yorigin >= CURSOR_
WIDTH
)
- yorigin = CURSOR_
WIDTH
- 1;
+ if (yorigin >= CURSOR_
HEIGHT
)
+ yorigin = CURSOR_
HEIGHT
- 1;
radeon_lock_cursor(crtc, true);
if (radeon_is_avivo(dev_priv)) {