libretro: fix minor compile warning.

This commit is contained in:
Stephen Anthony 2019-08-13 16:58:17 -02:30
parent 6c83bf5e84
commit 6041f983eb
1 changed files with 3 additions and 2 deletions

View File

@ -345,9 +345,10 @@ int FBSurface::drawString(const GUI::Font& font, const string& s,
ColorId color, TextAlign align,
int deltax, bool useEllipsis, ColorId shadowColor)
{
int lines = 1;
#ifdef GUI_SUPPORT
string inStr = s;
int lines = 1;
// draw multiline string
while (font.getStringWidth(inStr) > w && h >= font.getFontHeight() * 2)
@ -375,8 +376,8 @@ int FBSurface::drawString(const GUI::Font& font, const string& s,
lines++;
}
drawString(font, inStr, x, y, w, color, align, deltax, useEllipsis, shadowColor);
return lines;
#endif
return lines;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -