Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ooops.
[graphlib.git] / chateaux / chateaux.cpp
index 89de6bd..875fa4b 100644 (file)
@@ -79,7 +79,7 @@ float wtorX(const DrawingWindow& w, int wx)
 
 float wtorY(const DrawingWindow& w, int wy)
 {
-    return -(rYMax - rYMin) * wy / (w.height - 1) - rYMax;
+    return -(rYMax - rYMin) * wy / (w.height - 1) + rYMax;
 }
 
 float hauteurMontagne(float largeur, float hauteur, float x)