From 46d8b07e4185c35434c0c71eea0151d95143ed40 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 27 May 2019 19:20:25 -0300 Subject: [PATCH] Fix non-integer dpi scale values specified in love.graphics.newCanvas. --- src/common/runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/runtime.cpp b/src/common/runtime.cpp index 466696599..11b6d2dae 100644 --- a/src/common/runtime.cpp +++ b/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