From c886a27ddd69b3ba42837c02f90312e345ccff97 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sun, 26 Feb 2023 10:18:46 -0800 Subject: [PATCH] Rename anim_callback to draw_background because that's what it is --- implementations/uvm-ncc/xerblin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implementations/uvm-ncc/xerblin.c b/implementations/uvm-ncc/xerblin.c index 184509b..413440e 100644 --- a/implementations/uvm-ncc/xerblin.c +++ b/implementations/uvm-ncc/xerblin.c @@ -13,7 +13,7 @@ int wid; void -anim_callback() +draw_background() { // Clear the screen memset(frame_buffer, 0, sizeof(frame_buffer)); @@ -29,7 +29,7 @@ anim_callback() } window_draw_frame(wid, frame_buffer); // This rate of refresh of the whole screen caused ~60% CPU use. :( - // time_delay_cb(100, anim_callback); + // time_delay_cb(100, draw_background); } @@ -54,7 +54,7 @@ main() { init_font_data(); wid = window_create(FRAME_WIDTH, FRAME_HEIGHT, "Bouncing Ball Example", 0); - time_delay_cb(0, anim_callback); + time_delay_cb(0, draw_background); //window_on_keydown(wid, keydown); window_on_mousemove(wid, mousemove); enable_event_loop();