diff --git a/boutons.c b/boutons.c index 548cd596..72cef973 100644 --- a/boutons.c +++ b/boutons.c @@ -1655,9 +1655,6 @@ void Bouton_Resol(void) Afficher_menu(); Afficher_ecran(); } - Mouse_X = Largeur_ecran >> 1; - Mouse_Y = Hauteur_ecran >> 1; - Set_mouse_position(); Pinceau_X = Mouse_X; Pinceau_Y = Mouse_Y; diff --git a/graph.c b/graph.c index 5e014492..a9eb4652 100644 --- a/graph.c +++ b/graph.c @@ -187,8 +187,14 @@ int Initialiser_mode_video(int Largeur, int Hauteur, int Fullscreen) int Indice; int Facteur; - if (Largeur_ecran!=Largeur || - Hauteur_ecran!=Hauteur || + // Pour la première entrée dans cette fonction + if (Pixel_width<1) + Pixel_width=1; + if (Pixel_height<1) + Pixel_height=1; + + if (Largeur_ecran!=Largeur/Pixel_width || + Hauteur_ecran!=Hauteur/Pixel_height || Mode_video[Resolution_actuelle].Fullscreen != Fullscreen) { switch (Pixel_ratio) @@ -347,18 +353,19 @@ int Initialiser_mode_video(int Largeur, int Hauteur, int Fullscreen) Set_palette(Principal_Palette); - if (!Fullscreen) - Resolution_actuelle=0; - else + Resolution_actuelle=0; + if (Fullscreen) + { for (Indice=1; Indice