Browse Source

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

Alex Szpakowski 6 years ago
parent
commit
46d8b07e41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/runtime.cpp

+ 1 - 1
src/common/runtime.cpp

@@ -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