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:
Alex Szpakowski
2015-08-25 17:12:59 -03:00
parent 55b9899c82
commit e979455772
5 changed files with 16 additions and 7 deletions
+2 -3
View File
@@ -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;