test/sandbox.c

changeset 22
30b12e88fd84
parent 19
d0e88022e209
child 23
ab07757004b4
--- a/test/sandbox.c	Mon Dec 18 19:04:44 2023 +0100
+++ b/test/sandbox.c	Mon Dec 18 19:05:30 2023 +0100
@@ -67,7 +67,7 @@
             unsigned fps = 1000u / asc_context.elapsed_millis;
             if (fps != last_fps) {
                 last_fps = fps;
-                cxBufferClear(&fps_counter->text);
+                cxBufferReset(&fps_counter->text);
                 cx_bprintf(&fps_counter->text, "%u FPS", fps);
                 asc_text_update(fps_counter);
             }

mercurial