summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-19 16:06:29 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-19 16:06:29 +0000
commit6c343fd8e3a09865c8ee23ffeb5da6dc07379cfe (patch)
treee751b603908fa9ebffa8b9dfa5d3f57f9d9b76f5 /crawl-ref/source/format.cc
parent90a29a297d45fe8cc7f7b553123c8adc191a46ad (diff)
downloadcrawl-ref-6c343fd8e3a09865c8ee23ffeb5da6dc07379cfe.tar.gz
crawl-ref-6c343fd8e3a09865c8ee23ffeb5da6dc07379cfe.zip
Enable menu colour for the 'V' item sub-menu.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9657 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index 8ceea8ed91..4dd398cb0c 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -86,11 +86,12 @@ formatted_string formatted_string::parse_block(
formatted_string formatted_string::parse_string(
const std::string &s,
bool eot_ends_format,
- bool (*process)(const std::string &tag))
+ bool (*process)(const std::string &tag),
+ int main_colour)
{
// Safe assumption, that incoming color is LIGHTGREY
std::vector<int> colour_stack;
- colour_stack.push_back(LIGHTGREY);
+ colour_stack.push_back(main_colour);
formatted_string fs;