projects
/
fbgfx
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9d73367be921b9d44ab2591288557b4206777512
[fbgfx]
/
src
/
main.c
1
#include <stdio.h>
2
#include <string.h>
3
#include <stdlib.h>
4
#include "fbgfx.h"
5
6
static unsigned char *vmem;
7
static int xsz, ysz, depth;
8
9
int main(void)
10
{
11
if(!(vmem = fbgfx_get_video_mode(&xsz, &ysz, &depth))) {
12
return 1;
13
}
14
printf("current video mode: %dx%d %dbpp\n", xsz, ysz, depth);
15
16
/*memset(vmem, 0xff, xsz * ysz * depth / 8);*/
17
18
return 0;
19
}