X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/blobdiff_plain/7918f91adda9cdf88e79e01eb12ad69b79d7be9e..a264c3b2b4f246c4f291f64472073e0ff4285e31:/chateaux/chateaux.cpp diff --git a/chateaux/chateaux.cpp b/chateaux/chateaux.cpp index 89de6bd..875fa4b 100644 --- a/chateaux/chateaux.cpp +++ b/chateaux/chateaux.cpp @@ -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)