mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
love.event.quit now accepts a single (optional) argument, which is used as the program's exit status number. Resolves issue #1070.
This commit is contained in:
@@ -651,13 +651,12 @@ int Font::getWidth(const std::string &str)
|
||||
prevglyph = c;
|
||||
}
|
||||
}
|
||||
catch(utf8::exception &e)
|
||||
catch (utf8::exception &e)
|
||||
{
|
||||
throw love::Exception("UTF-8 decoding error: %s", e.what());
|
||||
}
|
||||
|
||||
if (width > max_width)
|
||||
max_width = width;
|
||||
max_width = std::max(max_width, width);
|
||||
}
|
||||
|
||||
return max_width;
|
||||
|
||||
Reference in New Issue
Block a user