Set mouse cursor at the center of the screen at start

This commit is contained in:
Thomas Bernard 2019-02-20 12:40:54 +01:00
parent 53d5b341c1
commit 508b2ef3f5
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -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)