mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-09 06:30:10 +01:00
Percentage: refactor function names
This commit is contained in:
@@ -24,7 +24,7 @@ static void printDevice(FFSoundOptions* options, const FFSoundDevice* device, ui
|
||||
if (str.length)
|
||||
ffStrbufAppendC(&str, ' ');
|
||||
|
||||
ffAppendPercentBar(&str, device->volume, 80, 90);
|
||||
ffPercentAppendBar(&str, device->volume, 80, 90);
|
||||
}
|
||||
|
||||
if (instance.config.display.percentType & FF_PERCENTAGE_TYPE_NUM_BIT)
|
||||
@@ -32,7 +32,7 @@ static void printDevice(FFSoundOptions* options, const FFSoundDevice* device, ui
|
||||
if (str.length)
|
||||
ffStrbufAppendC(&str, ' ');
|
||||
|
||||
ffAppendPercentNum(&str, device->volume, 80, 90, str.length > 0);
|
||||
ffPercentAppendNum(&str, device->volume, 80, 90, str.length > 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ static void printDevice(FFSoundOptions* options, const FFSoundDevice* device, ui
|
||||
else
|
||||
{
|
||||
FF_STRBUF_AUTO_DESTROY percentageStr = ffStrbufCreate();
|
||||
ffAppendPercentNum(&percentageStr, device->volume, 80, 90, false);
|
||||
ffPercentAppendNum(&percentageStr, device->volume, 80, 90, false);
|
||||
|
||||
ffPrintFormat(FF_SOUND_MODULE_NAME, index, &options->moduleArgs, FF_SOUND_NUM_FORMAT_ARGS, (FFformatarg[]) {
|
||||
{FF_FORMAT_ARG_TYPE_BOOL, &device->main},
|
||||
|
||||
Reference in New Issue
Block a user