Updates pinceau_x and pinceau_y when closing the resolution window.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@641 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-02-17 21:10:39 +00:00
parent 2d8beccbbd
commit 86976c9dde
5 changed files with 6 additions and 3 deletions

View File

@@ -1659,6 +1659,8 @@ void Bouton_Resol(void)
Mouse_X = Largeur_ecran >> 1;
Mouse_Y = Hauteur_ecran >> 1;
Set_mouse_position();
Pinceau_X = Mouse_X;
Pinceau_Y = Mouse_Y;
Desenclencher_bouton(BOUTON_RESOL);
@@ -1679,6 +1681,7 @@ void Bouton_Safety_resol(void)
Afficher_ecran();
Desenclencher_bouton(BOUTON_RESOL);
// Le pinceau est affiché à la position du clic et pas
Afficher_curseur();
}