summaryrefslogtreecommitdiff
path: root/library/modules
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-22 12:28:01 +0400
committerAlexander Gavrilov2012-08-22 12:28:01 +0400
commit2b79582e99654282a03ee10424db380942b04b10 (patch)
tree7d1318c51ac1a6e64fe731b13c5a7f64f25db2cc /library/modules
parent8969fc9435859399441cc5bc4f4308411183ef46 (diff)
downloaddfhack-2b79582e99654282a03ee10424db380942b04b10.tar.gz
dfhack-2b79582e99654282a03ee10424db380942b04b10.tar.bz2
dfhack-2b79582e99654282a03ee10424db380942b04b10.tar.xz
Implement a policy of marking DFHack-owned screens with a signature.
Diffstat (limited to 'library/modules')
-rw-r--r--library/modules/Screen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/modules/Screen.cpp b/library/modules/Screen.cpp
index 7dcbba32..cadd4c6d 100644
--- a/library/modules/Screen.cpp
+++ b/library/modules/Screen.cpp
@@ -158,6 +158,7 @@ bool Screen::drawBorder(const std::string &title)
int dimx = gps->dimx, dimy = gps->dimy;
Pen border(0xDB, 8);
Pen text(0, 0, 7);
+ Pen signature(0, 0, 8);
for (int x = 0; x < dimx; x++)
{
@@ -169,6 +170,9 @@ bool Screen::drawBorder(const std::string &title)
doSetTile(border, 0 * dimy + y);
doSetTile(border, (dimx - 1) * dimy + y);
}
+
+ paintString(signature, dimx-8, dimy-1, "DFHack");
+
return paintString(text, (dimx - title.length()) / 2, 0, title);
}