J'ai changer les images car elles étaient tous en 400x400 alors qu'il failait des dimensions différentes, il y avait aussi un petit problème dans le découpage c'était décaler de 1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user