summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-20 00:52:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-20 00:52:31 +0300
commit55829fa86de2dbf8935fcb55195f1c5dd4a8b5bb (patch)
treea43fc38cdc6ceef87e71b6dc9923a8c9aad6d809 /src
parentea97f2a46deabd2beb3d0c6713735a51d9472740 (diff)
downloadmanaverse-55829fa86de2dbf8935fcb55195f1c5dd4a8b5bb.tar.gz
manaverse-55829fa86de2dbf8935fcb55195f1c5dd4a8b5bb.tar.bz2
manaverse-55829fa86de2dbf8935fcb55195f1c5dd4a8b5bb.tar.xz
manaverse-55829fa86de2dbf8935fcb55195f1c5dd4a8b5bb.zip
Improve palette.
Diffstat (limited to 'src')
-rw-r--r--src/gui/palette.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index 0dbb5d3ad..eaee3e141 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -101,7 +101,7 @@ class Palette
inline const Color &getColorWithAlpha(const int type) A_WARN_UNUSED
{
- Color* col = &mColors[type].color;
+ Color *const col = &mColors[type].color;
col->a = mColors[type].delay;
return *col;
}
@@ -113,7 +113,7 @@ class Palette
*
* @return the gradient type of the color with the given index
*/
- inline GradientType getGradientType(int type) const A_WARN_UNUSED
+ inline GradientType getGradientType(const int type) const A_WARN_UNUSED
{ return mColors[type].grad; }
/**