Rename anim_callback to draw_background

because that's what it is
This commit is contained in:
Simon Forman 2023-02-26 10:18:46 -08:00
parent fc8920a09c
commit c886a27ddd
1 changed files with 3 additions and 3 deletions

View File

@ -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();