diff options
author | Daniel Lange <DLange@git.local> | 2021-01-11 20:43:28 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-01-11 20:43:28 +0100 |
commit | 94123a215ba971baf4ad7e12cc479258ddb8600e (patch) | |
tree | 6f053d8e1ce754ab7104b7364be9754231ab84de /OptionItem.c | |
parent | 50cb99f0acecb15992f3d5610c02676a6c94f2a4 (diff) | |
parent | c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff) | |
download | debian_htop-94123a215ba971baf4ad7e12cc479258ddb8600e.tar.gz debian_htop-94123a215ba971baf4ad7e12cc479258ddb8600e.tar.bz2 debian_htop-94123a215ba971baf4ad7e12cc479258ddb8600e.zip |
Update upstream source from tag 'upstream/3.0.5'
Update to upstream version '3.0.5'
with Debian dir 10922042e094a59dc72f9c39ddd4bfd59c7a302c
Diffstat (limited to 'OptionItem.c')
-rw-r--r-- | OptionItem.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OptionItem.c b/OptionItem.c index 00001fc..688fab8 100644 --- a/OptionItem.c +++ b/OptionItem.c @@ -29,14 +29,14 @@ static void CheckItem_display(const Object* cast, RichString* out) { const CheckItem* this = (const CheckItem*)cast; assert (this != NULL); - RichString_write(out, CRT_colors[CHECK_BOX], "["); + RichString_writeAscii(out, CRT_colors[CHECK_BOX], "["); if (CheckItem_get(this)) { - RichString_append(out, CRT_colors[CHECK_MARK], "x"); + RichString_appendAscii(out, CRT_colors[CHECK_MARK], "x"); } else { - RichString_append(out, CRT_colors[CHECK_MARK], " "); + RichString_appendAscii(out, CRT_colors[CHECK_MARK], " "); } - RichString_append(out, CRT_colors[CHECK_BOX], "] "); - RichString_append(out, CRT_colors[CHECK_TEXT], this->super.text); + RichString_appendAscii(out, CRT_colors[CHECK_BOX], "] "); + RichString_appendWide(out, CRT_colors[CHECK_TEXT], this->super.text); } static void NumberItem_display(const Object* cast, RichString* out) { @@ -44,7 +44,7 @@ static void NumberItem_display(const Object* cast, RichString* out) { assert (this != NULL); char buffer[12]; - RichString_write(out, CRT_colors[CHECK_BOX], "["); + RichString_writeAscii(out, CRT_colors[CHECK_BOX], "["); int written; if (this->scale < 0) { written = xSnprintf(buffer, sizeof(buffer), "%.*f", -this->scale, pow(10, this->scale) * NumberItem_get(this)); @@ -53,12 +53,12 @@ static void NumberItem_display(const Object* cast, RichString* out) { } else { written = xSnprintf(buffer, sizeof(buffer), "%d", NumberItem_get(this)); } - RichString_append(out, CRT_colors[CHECK_MARK], buffer); - RichString_append(out, CRT_colors[CHECK_BOX], "]"); + RichString_appendAscii(out, CRT_colors[CHECK_MARK], buffer); + RichString_appendAscii(out, CRT_colors[CHECK_BOX], "]"); for (int i = written; i < 5; i++) { - RichString_append(out, CRT_colors[CHECK_BOX], " "); + RichString_appendAscii(out, CRT_colors[CHECK_BOX], " "); } - RichString_append(out, CRT_colors[CHECK_TEXT], this->super.text); + RichString_appendWide(out, CRT_colors[CHECK_TEXT], this->super.text); } const OptionItemClass OptionItem_class = { |