diff options
author | Eugene Sandulenko | 2010-08-07 20:09:40 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:37:13 +0000 |
commit | ab85540a1bb59d7f69b89868805d1fe2a2adc89c (patch) | |
tree | 174c8976b018ecf939f6d1a6c67d84665d9623a8 /engines/sword25/gfx/text.cpp | |
parent | 7257ee345b9c71e0aa0677061de0a0466c183cb9 (diff) | |
download | scummvm-rg350-ab85540a1bb59d7f69b89868805d1fe2a2adc89c.tar.gz scummvm-rg350-ab85540a1bb59d7f69b89868805d1fe2a2adc89c.tar.bz2 scummvm-rg350-ab85540a1bb59d7f69b89868805d1fe2a2adc89c.zip |
SWORD25: More compilation fixes
Now almost everything compiles fine. Several files were tricked
and there are references to tinyxml.h and of course fmod and agg.
OpenGL gfx renderer removed from the project, we need to create
our own from the scratch.
svn-id: r53224
Diffstat (limited to 'engines/sword25/gfx/text.cpp')
-rw-r--r-- | engines/sword25/gfx/text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/gfx/text.cpp b/engines/sword25/gfx/text.cpp index eafd6d8152..418c428258 100644 --- a/engines/sword25/gfx/text.cpp +++ b/engines/sword25/gfx/text.cpp @@ -183,7 +183,7 @@ bool BS_Text::DoRender() { int CurX = m_AbsoluteX + (*Iter).BBox.left; int CurY = m_AbsoluteY + (*Iter).BBox.top; for (unsigned int i = 0; i < (*Iter).Text.size(); ++i) { - BS_Rect CurRect = FontPtr->GetCharacterRect((unsigned char)(*Iter).Text.at(i)); + BS_Rect CurRect = FontPtr->GetCharacterRect((unsigned char)(*Iter).Text[i]); BS_Rect RenderRect(CurX, CurY, CurX + CurRect.GetWidth(), CurY + CurRect.GetHeight()); int RenderX = CurX + (RenderRect.left - RenderRect.left); @@ -322,7 +322,7 @@ void BS_Text::UpdateMetrics(BS_FontResource &FontResource) { m_Height = 0; for (unsigned int i = 0; i < m_Text.size(); ++i) { - const BS_Rect &CurRect = FontResource.GetCharacterRect((unsigned char)m_Text.at(i)); + const BS_Rect &CurRect = FontResource.GetCharacterRect((unsigned char)m_Text[i]); m_Width += CurRect.GetWidth(); if (i != m_Text.size() - 1) m_Width += FontResource.GetGapWidth(); if (m_Height < CurRect.GetHeight()) m_Height = CurRect.GetHeight(); |