fix(color): display only GV name in mix/input overview when used for weight (#5366)

Also fix EL18 mixer edit layout.
This commit is contained in:
philmoz
2024-08-05 09:55:08 +10:00
committed by GitHub
parent 4b978c347d
commit 5254c8c646
3 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -437,8 +437,12 @@ char *getValueOrSrcVarString(char *dest, size_t len, gvar_t value, gvar_t vmin,
SourceNumVal v;
v.rawValue = value;
if (v.isSource) {
const char* s = getSourceString(v.value);
strncpy(dest, s, len);
if (v.value >= MIXSRC_FIRST_GVAR && v.value <= MIXSRC_LAST_GVAR) {
getGVarString(dest, v.value - MIXSRC_FIRST_GVAR);
} else {
const char* s = getSourceString(v.value);
strncpy(dest, s, len);
}
} else {
v.value += offset;
if (usePPMUnit && g_eeGeneral.ppmunit == PPM_US)