mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +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);
|
lua_getfield(L, table_index, key);
|
||||||
|
|
||||||
int retval;
|
double retval;
|
||||||
if (!lua_isnumber(L, -1))
|
if (!lua_isnumber(L, -1))
|
||||||
retval = defaultValue;
|
retval = defaultValue;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user