Fix server only build
This commit is contained in:
parent
ff186339e1
commit
f8a43b86ea
@ -100,8 +100,9 @@ void BubbleWidget::updateForNewSize()
|
|||||||
start:
|
start:
|
||||||
IGUIFont* font = irrwidget->getActiveFont();
|
IGUIFont* font = irrwidget->getActiveFont();
|
||||||
int text_height = font->getHeightPerLine();
|
int text_height = font->getHeightPerLine();
|
||||||
int max_cluster = -1;
|
|
||||||
bool has_newline = false;
|
bool has_newline = false;
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
|
int max_cluster = -1;
|
||||||
auto& glyph_layouts = irrwidget->getGlyphLayouts();
|
auto& glyph_layouts = irrwidget->getGlyphLayouts();
|
||||||
for (unsigned i = 0; i < glyph_layouts.size(); i++)
|
for (unsigned i = 0; i < glyph_layouts.size(); i++)
|
||||||
{
|
{
|
||||||
@ -132,7 +133,7 @@ start:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
irrwidget->setText(getText());
|
irrwidget->setText(getText());
|
||||||
text_height = irrwidget->getTextHeight();
|
text_height = irrwidget->getTextHeight();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user