This commit is contained in:
Bertrand Songis
2015-12-16 07:11:51 +01:00
parent d7cbd78edf
commit 8942115f33
+2 -9
View File
@@ -228,16 +228,9 @@ static int luaLcdDrawNumber(lua_State *L)
if (!luaLcdAllowed) return 0;
int x = luaL_checkinteger(L, 1);
int y = luaL_checkinteger(L, 2);
float val = luaL_checknumber(L, 3);
int val = luaL_checkinteger(L, 3);
unsigned int att = luaL_optunsigned(L, 4, 0);
int n;
if ((att & PREC2) == PREC2)
n = val * 100;
else if ((att & PREC1) == PREC1)
n = val * 10;
else
n = val;
lcdDrawNumber(x, y, n, att);
lcdDrawNumber(x, y, val, att);
return 0;
}