Merge pull request #651 from jfrickmann/FixMissingColors

Fix missing colors
This commit is contained in:
Peter Feerick
2021-08-30 20:46:40 +10:00
committed by GitHub
24 changed files with 389 additions and 442 deletions
+3 -2
View File
@@ -729,9 +729,10 @@ static int luaLcdSetColor(lua_State *L)
unsigned int index = COLOR_VAL(luaL_checkunsigned(L, 1));
LcdFlags flags = luaL_checkunsigned(L, 2);
if (index < LCD_COLOR_COUNT)
if (index < LCD_COLOR_COUNT) {
lcdColorTable[index] = COLOR_VAL(flagsRGB(flags));
OpenTxTheme::instance()->update();
}
return 0;
}