diff options
| author | dario-loi <loi.1940849@studenti.uniroma1.it> | 2024-11-24 20:21:45 +0100 |
|---|---|---|
| committer | dario-loi <loi.1940849@studenti.uniroma1.it> | 2024-11-24 20:21:45 +0100 |
| commit | a3bfd065071e2dd4e772fae9da7908ce523148c6 (patch) | |
| tree | 68b062d79a1b5e59c2bcba2ca8df1cef9852f656 /examples/texture.c | |
| parent | 274cacc5fadb3c3a220b833f027eee47cbda824c (diff) | |
| parent | cd0a47245a54c249eca7ef1c0d86bc4aa3489e9b (diff) | |
Merge branch 'master' into bugfixes
Diffstat (limited to 'examples/texture.c')
| -rw-r--r-- | examples/texture.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/texture.c b/examples/texture.c index 03311ea..75a67d7 100644 --- a/examples/texture.c +++ b/examples/texture.c @@ -32,7 +32,8 @@ int main(int argc, char **argv) int dy = 3; // Vertical speed (adjust for desired marquee speed) // Main rendering loop - while (1) { + int framesize = 30 * 30; + while (framesize) { // Clear the framebuffer (set background) fbgl_set_bg(&framebuffer, 0x000000); @@ -56,6 +57,7 @@ int main(int argc, char **argv) } usleep(50000); // Delay to make the marquee effect visible (adjust as needed) + framesize--; } // Wait for the user to press the escape key before exiting |
