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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user