diff options
| author | lvntky <klevent1903@gmail.com> | 2024-11-21 12:50:02 +0300 |
|---|---|---|
| committer | lvntky <klevent1903@gmail.com> | 2024-11-21 12:50:02 +0300 |
| commit | 95aa33f584b026ecbf1a515086f04a727bb0ae57 (patch) | |
| tree | 0e920ca4fa0eca22ea01948aee3e9bf13e7d73c0 /example | |
| parent | 7069bfb303e86354406c94d59e1e2e47f126c984 (diff) | |
[feature] basic fb0 initializtion
Diffstat (limited to 'example')
| -rwxr-xr-x | example/empty_example | bin | 15720 -> 16128 bytes | |||
| -rw-r--r-- | example/empty_example.c | 9 |
2 files changed, 7 insertions, 2 deletions
diff --git a/example/empty_example b/example/empty_example Binary files differindex e19c325..9f9c717 100755 --- a/example/empty_example +++ b/example/empty_example 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; } |
