12 int main(int argc
, char **argv
)
14 int fd
= open("/dev/fb0", O_RDWR
);
19 fb
= mmap(NULL
, xres
*yres
*4, PROT_READ
| PROT_WRITE
, MAP_SHARED
, fd
, 0);
21 for (i
= 0; i
< xres
; i
++) {
25 printf("performing %d full-screen blits\n", cnt
);
26 for (j
= 0; j
< cnt
; j
++) {
27 for (i
= 0; i
< yres
; i
++) {
28 memcpy(fb
+ xres
*4*i
, buf
, xres
*4);
32 munmap(fb
, xres
*yres
*4);