summaryrefslogtreecommitdiff
path: root/tests/modedemo
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-05-09 09:26:17 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-05-09 09:26:17 +0100
commit7317e774b5cddb7218c1416fa4d9ee98756e4890 (patch)
treec42cfac7f1e336eda1ce0ec72260350e86095c3d /tests/modedemo
parent7bcbc443f4f5161ab1e1a11cb6694e6d6269377c (diff)
Fix test applications for recent DRM changes
Diffstat (limited to 'tests/modedemo')
-rw-r--r--tests/modedemo/demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modedemo/demo.c b/tests/modedemo/demo.c
index 3fad984d..72d69405 100644
--- a/tests/modedemo/demo.c
+++ b/tests/modedemo/demo.c
@@ -603,7 +603,7 @@ void testCursor(int fd, uint32_t crtc)
prettyCursor(fd, bo.handle, 0xFFFF00FF);
printf("set cursor\n");
- drmModeSetCursor(fd, crtc, &bo, 64, 64);
+ drmModeSetCursor(fd, crtc, bo.handle, 64, 64);
printf("move cursor 0, 0\n");
drmModeMoveCursor(fd, crtc, 0, 0);
sleep(1);
@@ -614,7 +614,7 @@ void testCursor(int fd, uint32_t crtc)
printf("move cursor 100, 100\n");
drmModeMoveCursor(fd, crtc, 100, 100);
sleep(1);
- drmModeSetCursor(fd, crtc, NULL, 0, 0);
+ drmModeSetCursor(fd, crtc, 0, 0, 0);
}
void prettyCursor(int fd, unsigned int handle, unsigned int color)