From 190aa9bdce94bcc4c27e063f96bdd15f2258c8ba Mon Sep 17 00:00:00 2001
From: LIYue <liyue@liyue-laptop.(none)>
Date: Tue, 8 Feb 2011 06:10:38 +0800
Subject: [PATCH] quelques modifications pour resourdre les problemes de
 version de Linux

---
 stm32/src/simul/robot.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/stm32/src/simul/robot.cpp b/stm32/src/simul/robot.cpp
index 276684e2..d828f113 100644
--- a/stm32/src/simul/robot.cpp
+++ b/stm32/src/simul/robot.cpp
@@ -88,8 +88,8 @@ Robot::Robot(b2World & world) : world(world), olds(10000)
 	body->CreateFixture(&fixture);
 
 #ifdef BOX2D_2_0_1
-	b2Vec2 & v = box.m_vertices;
-	box.m_vertexCount = 4;
+	b2Vec2* v = box.vertices;
+	box.vertexCount = 4;
 #else
 	b2Vec2 v[4];
 #endif
@@ -220,6 +220,10 @@ void Robot::keyPressEvent(QKeyEvent* evt, bool press)
 	if(evt && press && evt->text() == "u" && !evt->isAutoRepeat() && elem)
 	{
 		level = (level != 100) ? 100 : 0;
+#ifdef BOX2D_2_0_1
+#define b2Filter b2FilterData
+#define GetFixtureList GetShapeList
+#endif
 		b2Filter filter;
 		if(level == 100)
 		{
-- 
GitLab