[gnome-text-editor] recoloring: reduce size of doubles
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] recoloring: reduce size of doubles
- Date: Wed, 22 Dec 2021 07:38:22 +0000 (UTC)
commit 693b7bb49ee20ce2a0ed106d25061cc0030a547b
Author: Christian Hergert <chergert redhat com>
Date: Tue Dec 21 23:13:14 2021 -0800
recoloring: reduce size of doubles
We don't need giant precision here.
src/editor-recoloring.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/editor-recoloring.c b/src/editor-recoloring.c
index 836683e..1e63c49 100644
--- a/src/editor-recoloring.c
+++ b/src/editor-recoloring.c
@@ -136,6 +136,9 @@ define_color_mixed (GString *str,
g_ascii_dtostr (levelstr, sizeof levelstr, level);
+ /* truncate */
+ levelstr[6] = 0;
+
g_string_append_printf (str, "@define-color %s mix(%s,%s,%s);\n", name, a_str, b_str, levelstr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]