use new cxBufferReset function

Mon, 18 Dec 2023 19:05:30 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 18 Dec 2023 19:05:30 +0100
changeset 22
30b12e88fd84
parent 21
1a47c57666f5
child 23
ab07757004b4

use new cxBufferReset function

test/sandbox.c file | annotate | diff | comparison | revisions
--- 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