aboutsummaryrefslogtreecommitdiffstats
path: root/01-rwalk/src
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2021-02-11 17:18:37 -0700
committerkatherine <ageha@airen-no-jikken.icu>2021-02-11 17:18:37 -0700
commit3f073ddee13b08941467c98f4c46698eee7a1f43 (patch)
tree481e50e943bc73b5a48307739ce1f3fdb96a02b1 /01-rwalk/src
parent519801b33a17a26c07e5f15cca7cb2f307b1388a (diff)
downloadallegro-sketches-3f073ddee13b08941467c98f4c46698eee7a1f43.tar.gz
optimise
Diffstat (limited to '01-rwalk/src')
-rw-r--r--01-rwalk/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/01-rwalk/src/main.c b/01-rwalk/src/main.c
index 28592e4..98ede82 100644
--- a/01-rwalk/src/main.c
+++ b/01-rwalk/src/main.c
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
DO_INIT(al_init_primitives_addon(), "primitives");
DO_INIT(al_install_keyboard(), "keyboard");
- DO_INIT(t = al_create_timer(1.0 / 30.0), "timer");
+ DO_INIT(t = al_create_timer(1.0 / 60.0), "timer");
DO_INIT(eq = al_create_event_queue(), "event queue");
al_set_new_display_option(ALLEGRO_SINGLE_BUFFER, 1, ALLEGRO_REQUIRE);
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
break;
}
- al_draw_filled_rectangle(x, y, x + 1.0, y + 1.0, al_map_rgb(255, 255, 255));
+ al_put_pixel(x, y, al_map_rgb(255, 255, 255));
randbytes = randombytes_random();