summaryrefslogtreecommitdiff
path: root/example/empty_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/empty_example.c')
-rw-r--r--example/empty_example.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/example/empty_example.c b/example/empty_example.c
index c275526..81f9c04 100644
--- a/example/empty_example.c
+++ b/example/empty_example.c
@@ -1,5 +1,5 @@
#define FBGL_IMPLEMENTATION
-#include "../include/fbgl/fbgl.h"
+#include "../fbgl.h"
#include <stdio.h>
@@ -8,7 +8,12 @@ int main()
printf("version %s\n", fbgl_version_info());
printf("name %s\n", fbgl_name_info());
fbgl_t buffer;
- fbgl_init("/dev/fb0", &buffer);
+ if( fbgl_init("/dev/fb0", &buffer) == -1) {
+ fprintf(stdout, "error could not oppen fb device");
+ return -1;
+ }
+ fbgl_set_bg(&buffer, 0xFF0000);
+ while(1){}
return 0;
}