diff --git a/affichage.c b/affichage.c index d7482bf..db31fe5 100644 --- a/affichage.c +++ b/affichage.c @@ -52,8 +52,8 @@ void afficher_plateau(int grille[MAX_TAILLE][MAX_TAILLE],int nb_ligne,int nb_col continue; } - src_x = (num % nb_colonne) * l_case; - src_y = (num / nb_colonne) * h_case; + src_x = (num-1) % nb_colonne * l_case; + src_y = (num-1) / nb_colonne * h_case; CopierZone(1, 0, src_x, src_y, l_case, h_case, x, y); diff --git a/image1.jpg b/image1.jpg deleted file mode 100644 index 7cff59d..0000000 Binary files a/image1.jpg and /dev/null differ diff --git a/image2.jpg b/image2.jpg deleted file mode 100644 index d396e93..0000000 Binary files a/image2.jpg and /dev/null differ diff --git a/image2.png b/image2.png index aac03af..e160cf3 100644 Binary files a/image2.png and b/image2.png differ diff --git a/image3.jpg b/image3.jpg deleted file mode 100644 index 2e9e281..0000000 Binary files a/image3.jpg and /dev/null differ diff --git a/image3.png b/image3.png index 179aa8d..9095488 100644 Binary files a/image3.png and b/image3.png differ diff --git a/main.c b/main.c index 370b421..d849a78 100644 --- a/main.c +++ b/main.c @@ -55,12 +55,12 @@ int main(void){ } else if(touche == XK_2 || touche == XK_KP_2) { nom_image = "image2.png"; - img_w = 400; img_h = 400; + img_w = 600; img_h = 600; choix_image_fait = 2; } else if(touche == XK_3 || touche == XK_KP_3) { nom_image = "image3.png"; - img_w = 400; img_h = 400; + img_w = 800; img_h = 800; choix_image_fait = 3; } else if(touche == XK_q || touche == XK_Q) { @@ -164,6 +164,7 @@ int main(void){ /* Pour quitter on clique sur q */ if (touche == XK_q || touche == XK_Q) { FermerGraphique(); + return 0; } diff --git a/taquin b/taquin deleted file mode 100755 index 2e3974c..0000000 Binary files a/taquin and /dev/null differ