[gnome-color-manager] trivial: add more precision in the vector and matrix strings
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: add more precision in the vector and matrix strings
- Date: Sun, 1 Aug 2010 17:32:11 +0000 (UTC)
commit 743453fa1d093b0a6714b90b103a87d06083e233
Author: Richard Hughes <richard hughsie com>
Date: Sun Aug 1 15:47:52 2010 +0100
trivial: add more precision in the vector and matrix strings
libcolor-glib/gcm-common.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libcolor-glib/gcm-common.c b/libcolor-glib/gcm-common.c
index 163521f..d2a648a 100644
--- a/libcolor-glib/gcm-common.c
+++ b/libcolor-glib/gcm-common.c
@@ -75,9 +75,9 @@ gcm_vec3_scalar_multiply (const GcmVec3 *src, gdouble value, GcmVec3 *dest)
gchar *
gcm_vec3_to_string (const GcmVec3 *src)
{
- return g_strdup_printf ("\n/ %0 .3f \\\n"
- "| %0 .3f |\n"
- "\\ %0 .3f /\n",
+ return g_strdup_printf ("\n/ %0 .6f \\\n"
+ "| %0 .6f |\n"
+ "\\ %0 .6f /",
src->v0, src->v1, src->v2);
}
@@ -121,9 +121,9 @@ gcm_mat33_clear (const GcmMat3x3 *src)
gchar *
gcm_mat33_to_string (const GcmMat3x3 *src)
{
- return g_strdup_printf ("\n/ %0 .3f %0 .3f %0 .3f \\\n"
- "| %0 .3f %0 .3f %0 .3f |\n"
- "\\ %0 .3f %0 .3f %0 .3f /\n",
+ return g_strdup_printf ("\n/ %0 .6f %0 .6f %0 .6f \\\n"
+ "| %0 .6f %0 .6f %0 .6f |\n"
+ "\\ %0 .6f %0 .6f %0 .6f /",
src->m00, src->m01, src->m02,
src->m10, src->m11, src->m12,
src->m20, src->m21, src->m22);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]