mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
Change the clutter_color_from_string() format
The format should be "%02x%02x%02x%02x" because we use guint8 for each component, and not guint16. The string before was completely broken.
This commit is contained in:
parent
28684c6702
commit
509799fa0c
@ -1,3 +1,9 @@
|
||||
2007-10-22 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-color.c (clutter_color_to_string): Change
|
||||
the print format to "%02x%02x%02x%02x" because we use guint8
|
||||
for each component, not guint16.
|
||||
|
||||
2007-10-19 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-entry.c (clutter_entry_paint): Fixed off by
|
||||
|
@ -541,7 +541,7 @@ clutter_color_to_string (const ClutterColor *color)
|
||||
{
|
||||
g_return_val_if_fail (color != NULL, NULL);
|
||||
|
||||
return g_strdup_printf ("#%04x%04x%04x%04x",
|
||||
return g_strdup_printf ("#%02x%02x%02x%02x",
|
||||
color->red,
|
||||
color->green,
|
||||
color->blue,
|
||||
|
Loading…
Reference in New Issue
Block a user