From 508b2ef3f5f7799462111a7f40e03308902f8fac Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 20 Feb 2019 12:40:54 +0100 Subject: [PATCH] Set mouse cursor at the center of the screen at start --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 73259c35..34068e96 100644 --- a/src/main.c +++ b/src/main.c @@ -973,6 +973,10 @@ int Init_program(int argc,char * argv[]) Spare.image_width=Screen_width/Pixel_width; Spare.image_height=Screen_height/Pixel_height; + // set the Mouse cursor at the center of the screen + Mouse_X = Screen_width / 2; + Mouse_Y = Screen_height / 2; + starting_image_mode = Config.Default_mode_layers ? IMAGE_MODE_LAYERED : IMAGE_MODE_ANIMATION; // Allocation de mémoire pour les différents écrans virtuels (et brosse)