From: giersch Date: Thu, 21 Jan 2010 09:28:03 +0000 (+0000) Subject: Ooops. X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/commitdiff_plain/a264c3b2b4f246c4f291f64472073e0ff4285e31 Ooops. --- 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)