diff --git a/radio/src/lua/api_lcd.cpp b/radio/src/lua/api_lcd.cpp index 62a07c169..58148fb64 100644 --- a/radio/src/lua/api_lcd.cpp +++ b/radio/src/lua/api_lcd.cpp @@ -367,6 +367,8 @@ Draw a rectangle from top left corner (x,y) of specified width and height @param flags (unsigned number) drawing flags +@param t (number) thickness in pixels + @status current Introduced in 2.0.0 */ static int luaLcdDrawRectangle(lua_State *L) @@ -377,7 +379,12 @@ static int luaLcdDrawRectangle(lua_State *L) int w = luaL_checkinteger(L, 3); int h = luaL_checkinteger(L, 4); unsigned int flags = luaL_optunsigned(L, 5, 0); +#if defined(PCBHORUS) + int t = luaL_optunsigned(L, 6, 1); + lcdDrawRect(x, y, w, h, t, 0xff, flags); +#else lcdDrawRect(x, y, w, h, 0xff, flags); +#endif return 0; }