summaryrefslogtreecommitdiffstats
path: root/Meter.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-20 17:15:51 +0100
committerBenny Baumann <BenBE@geshi.org>2020-12-20 17:15:51 +0100
commit5fa1c7040d0d86c99cb7efb210610ad8e973e546 (patch)
treeb189a6d44f6c713917d9173e92d17d1a4dcd5c31 /Meter.c
parent7e7a53c415b82cceee6173922987b772b1d51c10 (diff)
Minor typo and comment clarification
Diffstat (limited to 'Meter.c')
-rw-r--r--Meter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Meter.c b/Meter.c
index 0130e754..3b3b438d 100644
--- a/Meter.c
+++ b/Meter.c
@@ -199,14 +199,14 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
return;
// The text in the bar is right aligned;
- // Pad with maximal spaces and then calculate needed staring position offset
+ // Pad with maximal spaces and then calculate needed starting position offset
RichString_begin(bar);
RichString_appendChr(&bar, ' ', w);
RichString_appendWide(&bar, 0, buffer);
int startPos = RichString_sizeVal(bar) - w;
if (startPos > w) {
// Text is too large for bar
- // Truncate too long bar meter text at a space character
+ // Truncate meter text at a space character
for (int pos = 2 * w; pos > w; pos--) {
if (RichString_getCharVal(bar, pos) == ' ') {
while (pos > w && RichString_getCharVal(bar, pos - 1) == ' ')

© 2014-2024 Faster IT GmbH | imprint | privacy policy