diff options
| author | Levent Kaya <42411502+lvntky@users.noreply.github.com> | 2024-11-24 21:17:01 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-24 21:17:01 +0300 |
| commit | 766962f9970cc3d8ee5b49c8bc987fe14c9eda7c (patch) | |
| tree | 7a6b8abc927b0ef832d677fd80aa255ca7dd0951 /example/raw_mode.c | |
| parent | 0898b3d26129f3880223d0d457fe05fd3f6be180 (diff) | |
| parent | f795c9d0bc73dca2cabb36c1889dc99422549def (diff) | |
Merge pull request #6 from dario-loi/master
[FIX] Move all implementation under include guard
Diffstat (limited to 'example/raw_mode.c')
| -rw-r--r-- | example/raw_mode.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/example/raw_mode.c b/example/raw_mode.c index 12127af..449a824 100644 --- a/example/raw_mode.c +++ b/example/raw_mode.c @@ -4,18 +4,17 @@ int main(int argc, char *argv[]) { - fbgl_t fb; - fbgl_init("/dev/fb0", &fb); + fbgl_t fb; + fbgl_init("/dev/fb0", &fb); - fbgl_set_bg(&fb, 0xFFFFFF); + fbgl_set_bg(&fb, 0xFFFFFF); - while(1) { - if(fbgl_check_esc_key()) { - printf("pressed"); - fbgl_set_bg(&fb, 0x000000); + while (1) { + if (fbgl_check_esc_key()) { + printf("pressed"); + fbgl_set_bg(&fb, 0x000000); + } } - } - - return 0; -} + return 0; +} |
