diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-30 08:43:15 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-30 08:43:15 -0700 |
commit | ea9ca516da190a1a328b455c4d98a9fd57182e55 (patch) | |
tree | dd70253008df8624af573b0aba200f057e08a3a1 /src | |
parent | a49b60fc0f9edfba8ec457ce06cf75cc13d4c71b (diff) | |
download | mana-ea9ca516da190a1a328b455c4d98a9fd57182e55.tar.gz mana-ea9ca516da190a1a328b455c4d98a9fd57182e55.tar.bz2 mana-ea9ca516da190a1a328b455c4d98a9fd57182e55.tar.xz mana-ea9ca516da190a1a328b455c4d98a9fd57182e55.zip |
Fixed color saving on Windows.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/colour.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/colour.cpp b/src/gui/colour.cpp index 816420ed..e6ceeaca 100644 --- a/src/gui/colour.cpp +++ b/src/gui/colour.cpp @@ -26,6 +26,7 @@ #include "../configuration.h" #include "../utils/gettext.h" +#include "../utils/tostring.h" Colour::Colour() { @@ -48,9 +49,7 @@ Colour::~Colour() col != colEnd; ++col) { - char buffer[20]; - std::sprintf(buffer, "0x%06x", col->rgb); - config.setValue("Colour" + col->text, buffer); + config.setValue("Colour" + col->text, toString(col->rgb)); } } |