summaryrefslogtreecommitdiff
path: root/src/rb.c
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-11-29 18:49:34 +0100
committerCarlos Maiolino <[email protected]>2025-11-29 18:49:34 +0100
commite6bb80a1aa60681992dba22823100900a4f22201 (patch)
tree4931fc5849e3744e107ed85208acb53fcca5d255 /src/rb.c
parent4242664fcd5d2c3e0fe24ffec038c3767276f3e5 (diff)
Add a couple macros to set screen center
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/rb.c')
-rw-r--r--src/rb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rb.c b/src/rb.c
index 0307d57..a478671 100644
--- a/src/rb.c
+++ b/src/rb.c
@@ -175,7 +175,7 @@ start_game(struct rb *rb)
case ALLEGRO_EVENT_MOUSE_AXES:
dx += event.mouse.dx * 0.1;
dy += event.mouse.dy * 0.1;
- al_set_mouse_xy(rb->display, 320, 240);
+ al_set_mouse_xy(rb->display, RB_X_CENTER, RB_Y_CENTER);
break;
case ALLEGRO_EVENT_KEY_DOWN: