1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 05:15:18 +03:00

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

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;
}