summaryrefslogtreecommitdiff
path: root/plugins/devel
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-19 09:21:25 +0400
committerAlexander Gavrilov2012-08-19 09:21:25 +0400
commitfd0bf2ef929d3bc98570012b21e6e603c570a8f6 (patch)
treee6339698fa55793c6aa7899fe3e2a8a5f5afd9e0 /plugins/devel
parent8ed219d4e0cbea19c8a9489294a975b81946bba2 (diff)
downloaddfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.gz
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.bz2
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.xz
Extract the color enum from color_ostream to toplevel.
Diffstat (limited to 'plugins/devel')
-rw-r--r--plugins/devel/kittens.cpp6
-rw-r--r--plugins/devel/memview.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/devel/kittens.cpp b/plugins/devel/kittens.cpp
index 2e8e6eab..b610d474 100644
--- a/plugins/devel/kittens.cpp
+++ b/plugins/devel/kittens.cpp
@@ -257,7 +257,7 @@ command_result kittens (color_ostream &out, vector <string> & parameters)
};
con.cursor(false);
con.clear();
- Console::color_value color = Console::COLOR_BLUE;
+ Console::color_value color = COLOR_BLUE;
while(1)
{
if(shutdown_flag)
@@ -282,7 +282,7 @@ command_result kittens (color_ostream &out, vector <string> & parameters)
con.flush();
con.msleep(60);
((int&)color) ++;
- if(color > Console::COLOR_MAX)
- color = Console::COLOR_BLUE;
+ if(color > COLOR_MAX)
+ color = COLOR_BLUE;
}
}
diff --git a/plugins/devel/memview.cpp b/plugins/devel/memview.cpp
index 5d8d6a9b..757b475d 100644
--- a/plugins/devel/memview.cpp
+++ b/plugins/devel/memview.cpp
@@ -73,7 +73,7 @@ void outputHex(uint8_t *buf,uint8_t *lbuf,size_t len,size_t start,color_ostream
con.reset_color();
if(isAddr((uint32_t *)(buf+j+i),ranges))
- con.color(Console::COLOR_LIGHTRED); //coloring in the middle does not work
+ con.color(COLOR_LIGHTRED); //coloring in the middle does not work
//TODO make something better?
}
if(lbuf[j+i]!=buf[j+i])