diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-31 20:50:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-01 00:43:56 +0300 |
commit | 3fc7fd8473e545265c705504ee0d5f2a70268282 (patch) | |
tree | 277d3ccaecbb93111533de8c69e1debc4e4d3b09 /src/gui/palette.h | |
parent | 34cb5e4b16c1b1f5d3263dd01848b24ab0b9b354 (diff) | |
download | manaplus-3fc7fd8473e545265c705504ee0d5f2a70268282.tar.gz manaplus-3fc7fd8473e545265c705504ee0d5f2a70268282.tar.bz2 manaplus-3fc7fd8473e545265c705504ee0d5f2a70268282.tar.xz manaplus-3fc7fd8473e545265c705504ee0d5f2a70268282.zip |
Move function getGradientType, getGradientDelay, getColorWithAlpha from palette to userpalette.
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r-- | src/gui/palette.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h index fcfa40360..aa7d2ecc8 100644 --- a/src/gui/palette.h +++ b/src/gui/palette.h @@ -65,23 +65,6 @@ class Palette notfinal const Color &getCharColor(const signed char c, bool &valid) const A_WARN_UNUSED; - inline const Color &getColorWithAlpha(const int type) A_WARN_UNUSED - { - Color *const col = &mColors[type].color; - col->a = mColors[type].delay; - return *col; - } - - /** - * Gets the GradientType associated with the specified type. - * - * @param type the color type of the color - * - * @return the gradient type of the color with the given index - */ - inline GradientTypeT getGradientType(const int type) const A_WARN_UNUSED - { return mColors[type].grad; } - /** * Get the character used by the specified color. * @@ -93,16 +76,6 @@ class Palette notfinal { return mColors[type].ch; } /** - * Gets the gradient delay for the specified type. - * - * @param type the color type of the color - * - * @return the gradient delay of the color with the given index - */ - inline int getGradientDelay(const int type) const A_WARN_UNUSED - { return mColors[type].delay; } - - /** * Updates all colors, that are non-static. */ static void advanceGradients(); |