From 9f784e81f81651bed087902f9f3afee113e56148 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Tue, 19 Jun 2012 20:11:47 +0200 Subject: Switched to new implementation of the rest of math module - changed structs from D3DVECTOR to Math::Vector and from D3DMATRIX to Math::Matrix - changed functions to new Math namespace functions - moved mainmovie module from graphics to object - added Get and Set to Math::Matrix --- src/ui/displaytext.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/ui/displaytext.cpp') diff --git a/src/ui/displaytext.cpp b/src/ui/displaytext.cpp index 3fa2687..f1dba43 100644 --- a/src/ui/displaytext.cpp +++ b/src/ui/displaytext.cpp @@ -61,7 +61,7 @@ CDisplayText::CDisplayText(CInstanceManager* iMan) for ( i=0 ; iDeleteControl(EventMsg(EVENT_DT_VISIT0+i)); } m_bExist[i] = false; - m_visitGoal[i] = D3DVECTOR(0.0f, 0.0f, 0.0f); + m_visitGoal[i] = Math::Vector(0.0f, 0.0f, 0.0f); m_visitDist[i] = 0.0f; m_visitHeight[i] = 0.0f; m_time[i] = 0.0f; @@ -453,12 +453,12 @@ void CDisplayText::SetEnable(bool bEnable) // Returns the goal during a visit. -D3DVECTOR CDisplayText::RetVisitGoal(EventMsg event) +Math::Vector CDisplayText::RetVisitGoal(EventMsg event) { int i; i = event-EVENT_DT_VISIT0; - if ( i < 0 || i >= MAXDTLINE ) return D3DVECTOR(0.0f, 0.0f, 0.0f); + if ( i < 0 || i >= MAXDTLINE ) return Math::Vector(0.0f, 0.0f, 0.0f); return m_visitGoal[i]; } -- cgit v1.2.3-1-g7c22