From 7b3dcec30e67ae44c551d4827104f1cfd19481c4 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sat, 14 May 2016 02:12:04 -0700 Subject: [PATCH] Fix lcd.drawGauge outer rectangle which was always black --- radio/src/lua/api_lcd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radio/src/lua/api_lcd.cpp b/radio/src/lua/api_lcd.cpp index 92cbfb7da..af4e7236b 100644 --- a/radio/src/lua/api_lcd.cpp +++ b/radio/src/lua/api_lcd.cpp @@ -445,7 +445,11 @@ static int luaLcdDrawGauge(lua_State *L) int num = luaL_checkinteger(L, 5); int den = luaL_checkinteger(L, 6); unsigned int flags = luaL_optunsigned(L, 7, 0); - lcdDrawRect(x, y, w, h); +#if defined(PCBHORUS) + lcdDrawRect(x, y, w, h, 1, 0xff, flags); +#else + lcdDrawRect(x, y, w, h, 0xff, flags); +#endif uint8_t len = limit((uint8_t)1, uint8_t(w*num/den), uint8_t(w)); lcdDrawSolidFilledRect(x+1, y+1, len, h-2, flags); return 0;