summaryrefslogtreecommitdiff
path: root/tests/modefb
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/modefb
parent7bcbc443f4f5161ab1e1a11cb6694e6d6269377c (diff)
Fix test applications for recent DRM changes
Diffstat (limited to 'tests/modefb')
-rw-r--r--tests/modefb/demo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/modefb/demo.c b/tests/modefb/demo.c
index b6d1f65b..ead53334 100644
--- a/tests/modefb/demo.c
+++ b/tests/modefb/demo.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
@@ -16,8 +17,6 @@ void cursor(int fd, int drmfd);
void prettyColors(int fd);
void prettyCursor(int fd, unsigned int handle, unsigned int color);
-extern void sleep(int);
-
struct fb_var_screeninfo var;
struct fb_fix_screeninfo fix;
@@ -152,7 +151,7 @@ void cursor(int fd, int drmfd)
}
prettyCursor(drmfd, bo.handle, 0xFFFF00FF);
- drmModeSetCursor(drmfd, crtc, &bo, 64, 64);
+ drmModeSetCursor(drmfd, crtc, bo.handle, 64, 64);
drmModeMoveCursor(drmfd, crtc, 0, 0);
sleep(1);
prettyCursor(drmfd, bo.handle, 0xFFFF0000);
@@ -160,7 +159,7 @@ void cursor(int fd, int drmfd)
sleep(1);
drmModeMoveCursor(drmfd, crtc, 100, 100);
sleep(1);
- drmModeSetCursor(drmfd, crtc, NULL, 0, 0);
+ drmModeSetCursor(drmfd, crtc, 0, 0, 0);
drmBOUnreference(drmfd, &bo);
}