Ensure default for luaDrawNumber is RIGHT for consistency with 2.1.x

This commit is contained in:
3djc
2016-10-07 10:54:54 +02:00
parent def3ba9d66
commit 7c6dd36ee1
+1
View File
@@ -226,6 +226,7 @@ static int luaLcdDrawNumber(lua_State *L)
int y = luaL_checkinteger(L, 2);
int val = luaL_checkinteger(L, 3);
unsigned int att = luaL_optunsigned(L, 4, 0);
if (!(att & LEFT)) att |= RIGHT;
lcdDrawNumber(x, y, val, att);
return 0;
}