summaryrefslogtreecommitdiff
path: root/plugins/manipulator.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-22 18:18:19 +0400
committerAlexander Gavrilov2012-08-22 18:18:19 +0400
commit7987ea9a9877a4e9f44492210784c7e8d7f94bb9 (patch)
tree768bd5aacaba64be23592b0a93f99ec8dd733b3d /plugins/manipulator.cpp
parent6e8b68fb29c52f1782938bf7aa564a516079bf61 (diff)
downloaddfhack-7987ea9a9877a4e9f44492210784c7e8d7f94bb9.tar.gz
dfhack-7987ea9a9877a4e9f44492210784c7e8d7f94bb9.tar.bz2
dfhack-7987ea9a9877a4e9f44492210784c7e8d7f94bb9.tar.xz
Put some compatibility features into the base dfhack viewscreen.
Diffstat (limited to 'plugins/manipulator.cpp')
-rw-r--r--plugins/manipulator.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/manipulator.cpp b/plugins/manipulator.cpp
index deb45b9d..4d8487ed 100644
--- a/plugins/manipulator.cpp
+++ b/plugins/manipulator.cpp
@@ -246,7 +246,7 @@ public:
static viewscreen_unitlaborsst *create (char pushtype, df::viewscreen *scr = NULL);
void feed(set<df::interface_key> *events);
- void logic();
+
void render();
void resize(int w, int h) { calcSize(); }
@@ -444,16 +444,13 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
// TODO: add sorting
}
-void viewscreen_unitlaborsst::logic()
-{
- enabler->flag.bits.render = true;
-}
-
void viewscreen_unitlaborsst::render()
{
if (Screen::isDismissed(this))
return;
+ dfhack_viewscreen::render();
+
Screen::clear();
Screen::drawBorder(" Manage Labors ");