aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kdx.42@42l.fr>2023-03-28 04:41:31 +0000
committerkdx <kdx.42@42l.fr>2023-03-28 04:41:31 +0000
commit8a95b244a32ac58aafda89ba088d715714ef866a (patch)
tree6fc79ec3bf72b95fa7ec44577e4f5f1277606d07
parentadfe71c6848e73da65fc91bbc745de4b0be29ce9 (diff)
downloadtzr-8a95b244a32ac58aafda89ba088d715714ef866a.tar.gz
spawn mouse at the center of the screen
-rw-r--r--sources/TZR_Init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/TZR_Init.c b/sources/TZR_Init.c
index 7f80978..e2ac1e5 100644
--- a/sources/TZR_Init.c
+++ b/sources/TZR_Init.c
@@ -64,5 +64,7 @@ _TZR_Init(const TZR_Config *config)
if (!___tzr_config.show_cursor)
SDL_ShowCursor(0);
+ ___tzr_mouse_x = ___tzr_config.width / 2;
+ ___tzr_mouse_y = ___tzr_config.height / 2;
return 0;
}