Bugfix: Delayed loading of fonts
svn-id: r32993
This commit is contained in:
parent
ccf9368c53
commit
e0aad7f4be
4 changed files with 17 additions and 6 deletions
|
@ -75,7 +75,6 @@ void VectorRenderer::textStep(const Common::String &text, const Common::Rect &ar
|
|||
if (step.color.set)
|
||||
setFgColor(step.color.r, step.color.g, step.color.b);
|
||||
|
||||
assert(step.font);
|
||||
drawString(step.font, text.c_str(), area, step.align);
|
||||
}
|
||||
|
||||
|
@ -186,7 +185,7 @@ inline uint32 fp_sqroot(uint32 x) {
|
|||
********************************************************************/
|
||||
template <typename PixelType, typename PixelFormat>
|
||||
void VectorRendererSpec<PixelType, PixelFormat>::
|
||||
drawString(Graphics::Font *font, const Common::String &text, const Common::Rect &area, GUI::Theme::TextAlign align) {
|
||||
drawString(const Graphics::Font *font, const Common::String &text, const Common::Rect &area, GUI::Theme::TextAlign align) {
|
||||
font->drawString(_activeSurface, text, area.left, area.top, area.width(), _fgColor, (Graphics::TextAlignment)align, 0, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue