mirror of https://github.com/stella-emu/stella.git
libretro: fix minor compile warning.
This commit is contained in:
parent
a04a310944
commit
f7c70e46f5
|
@ -345,9 +345,10 @@ int FBSurface::drawString(const GUI::Font& font, const string& s,
|
||||||
ColorId color, TextAlign align,
|
ColorId color, TextAlign align,
|
||||||
int deltax, bool useEllipsis, ColorId shadowColor)
|
int deltax, bool useEllipsis, ColorId shadowColor)
|
||||||
{
|
{
|
||||||
|
int lines = 1;
|
||||||
|
|
||||||
#ifdef GUI_SUPPORT
|
#ifdef GUI_SUPPORT
|
||||||
string inStr = s;
|
string inStr = s;
|
||||||
int lines = 1;
|
|
||||||
|
|
||||||
// draw multiline string
|
// draw multiline string
|
||||||
while (font.getStringWidth(inStr) > w && h >= font.getFontHeight() * 2)
|
while (font.getStringWidth(inStr) > w && h >= font.getFontHeight() * 2)
|
||||||
|
@ -375,8 +376,8 @@ int FBSurface::drawString(const GUI::Font& font, const string& s,
|
||||||
lines++;
|
lines++;
|
||||||
}
|
}
|
||||||
drawString(font, inStr, x, y, w, color, align, deltax, useEllipsis, shadowColor);
|
drawString(font, inStr, x, y, w, color, align, deltax, useEllipsis, shadowColor);
|
||||||
return lines;
|
|
||||||
#endif
|
#endif
|
||||||
|
return lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue