mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Fix non-integer dpi scale values specified in love.graphics.newCanvas.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user