Merge pull request #139 from MoonModules/upstream_patch_clusterf
AC minor patch cluster * Anti-Aliased Lines and Circles * replacing deprecated functions in ws.cpp * using global brightness in analogue clock overlay * fix for palette names (custom palettes) * bugfix for UI: when resizing the window, it always jumped to the Colors tab * UI: add webpage shortcuts for tabs
This commit is contained in:
@@ -267,8 +267,8 @@ uint8_t extractModeName(uint8_t mode, const char *src, char *dest, uint8_t maxLe
|
||||
} else return 0;
|
||||
}
|
||||
|
||||
if (src == JSON_palette_names && mode > GRADIENT_PALETTE_COUNT) {
|
||||
snprintf_P(dest, maxLen, PSTR("~ Custom %d~"), 255-mode);
|
||||
if (src == JSON_palette_names && mode > (GRADIENT_PALETTE_COUNT + 13)) {
|
||||
snprintf_P(dest, maxLen, PSTR("~ Custom %d ~"), 255-mode);
|
||||
dest[maxLen-1] = '\0';
|
||||
return strlen(dest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user