Mon, 18 Dec 2023 19:05:30 +0100
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); }