Fix non-integer dpi scale values specified in love.graphics.newCanvas.

This commit is contained in:
Alex Szpakowski
2019-05-27 19:20:25 -03:00
parent ee77eef9a9
commit 46d8b07e41
+1 -1
View File
@@ -241,7 +241,7 @@ double luax_numberflag(lua_State *L, int table_index, const char *key, double de
{
lua_getfield(L, table_index, key);
int retval;
double retval;
if (!lua_isnumber(L, -1))
retval = defaultValue;
else