diff options
| author | Carlos Maiolino <[email protected]> | 2025-11-29 18:49:34 +0100 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-11-29 18:49:34 +0100 |
| commit | e6bb80a1aa60681992dba22823100900a4f22201 (patch) | |
| tree | 4931fc5849e3744e107ed85208acb53fcca5d255 /src/rb.c | |
| parent | 4242664fcd5d2c3e0fe24ffec038c3767276f3e5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |
