From: giersch Date: Wed, 21 Nov 2007 14:16:28 +0000 (+0000) Subject: . X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/commitdiff_plain/4bdee7c3e2155dde84c2c22035754a96bc6b2515 . --- diff --git a/chateaux/chateaux.cpp b/chateaux/chateaux.cpp index abce59f..64d1c01 100644 --- a/chateaux/chateaux.cpp +++ b/chateaux/chateaux.cpp @@ -247,6 +247,7 @@ int tir(DrawingWindow& w, vy += ay * dt; w.msleep(10); + w.sync(); w.setColor("skyblue"); w.fillCircle(wx, wy, 2); // w.setColor("black"); @@ -320,6 +321,7 @@ int jeu1(DrawingWindow& w) w.setBgColor("white"); w.drawTextBg(w.width / 2, w.height / 3, msg.str().c_str(), Qt::AlignCenter); + w.sync(); std::cout << msg.str() << std::endl; return perdant; }