From 24d07de2f6aaab6d7c957f059f17dfed78cb8365 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Mar 2014 13:21:46 +0300 Subject: Improve userpalette. --- src/gui/userpalette.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gui/userpalette.cpp') diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp index 74d47203f..d6fb35192 100644 --- a/src/gui/userpalette.cpp +++ b/src/gui/userpalette.cpp @@ -234,8 +234,10 @@ UserPalette::~UserPalette() } } -void UserPalette::setColor(const int type, const int r, - const int g, const int b) +void UserPalette::setColor(const int type, + const int r, + const int g, + const int b) { Color &color = mColors[type].color; color.r = r; @@ -311,7 +313,7 @@ void UserPalette::rollback() } } -int UserPalette::getColorTypeAt(int i) +int UserPalette::getColorTypeAt(const int i) { if (i < 0 || i >= getNumberOfElements()) return BEING; @@ -319,7 +321,8 @@ int UserPalette::getColorTypeAt(int i) return mColors[i].type; } -void UserPalette::addColor(const unsigned type, const unsigned rgb, +void UserPalette::addColor(const unsigned type, + const unsigned rgb, Palette::GradientType grad, const std::string &text, int delay) -- cgit v1.2.3-70-g09d2