aboutsummaryrefslogtreecommitdiffstats
path: root/01-rwalk
diff options
context:
space:
mode:
Diffstat (limited to '01-rwalk')
-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();