summaryrefslogtreecommitdiff
path: root/src/gui/palette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-05 21:45:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-05 21:47:10 +0300
commit2d452dd8faf2529fda01913b0ab26f4a1f22ef3d (patch)
tree818e1d9aa3088deca6cdcd5df72858b3dec56a0c /src/gui/palette.h
parent940161d95ee7c9e9ef4c6941d3d464d4264a94ad (diff)
downloadplus-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.tar.gz
plus-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.tar.bz2
plus-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.tar.xz
plus-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.zip
A bit improve speed in getting color from theme.
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r--src/gui/palette.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index 645260280..d46a3c57c 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -30,6 +30,7 @@
#include <guichan/color.hpp>
#include <cstdlib>
+#include <map>
#include <string>
#include <set>
#include <vector>
@@ -200,8 +201,10 @@ class Palette
}
};
typedef std::vector<ColorElem> Colors;
+ typedef std::map<unsigned char, int> CharColors;
/** Vector containing the colors. */
Colors mColors;
+ CharColors mCharColors;
std::vector<ColorElem*> mGradVector;
};