From: Rodrigo H. <kw...@us...> - 2004-05-21 14:14:04
|
Update of /cvsroot/aedgui/aedGUI/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29252/src Modified Files: aedStaticText.cpp Log Message: aedFont now uses a vector of surfaces for text rendering Index: aedStaticText.cpp =================================================================== RCS file: /cvsroot/aedgui/aedGUI/src/aedStaticText.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** aedStaticText.cpp 21 May 2004 13:48:30 -0000 1.34 --- aedStaticText.cpp 21 May 2004 14:13:55 -0000 1.35 *************** *** 122,125 **** --- 122,127 ---- for(;;) { + // the following doesn't quite work + // yet temp2 = temp.substr(0,m_Font->getMaxCharLen(m_Surface, dest.x, *************** *** 157,160 **** --- 159,167 ---- else if(m_Justification == AED_JUST_CENTER) dest.x = myPos.getX() + int ((myPos.getWidth() - dest.w) / 2); + m_Font->renderTextBlended(m_Surface, + dest.x, + dest.y, + m_Caption.c_str(), + thisColor) } } |