mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 13:25:20 +03:00
Ensure default for luaDrawNumber is RIGHT for consistency with 2.1.x
This commit is contained in:
parent
def3ba9d66
commit
7c6dd36ee1
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ static int luaLcdDrawNumber(lua_State *L)
|
||||||
int y = luaL_checkinteger(L, 2);
|
int y = luaL_checkinteger(L, 2);
|
||||||
int val = luaL_checkinteger(L, 3);
|
int val = luaL_checkinteger(L, 3);
|
||||||
unsigned int att = luaL_optunsigned(L, 4, 0);
|
unsigned int att = luaL_optunsigned(L, 4, 0);
|
||||||
|
if (!(att & LEFT)) att |= RIGHT;
|
||||||
lcdDrawNumber(x, y, val, att);
|
lcdDrawNumber(x, y, val, att);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue