summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-07-17 08:57:12 -0700
committerEnne Walker <enne.walker@gmail.com>2010-07-17 09:01:55 -0700
commit5924350ec00de6e908b5cd1aac887600bfa43dc3 (patch)
tree9057bf195c4408a1573287ca718ea4ba14bb3ee6 /crawl-ref/source/tilereg.cc
parent6bb769da38d426fed82aab01497bcdf5179c4c1b (diff)
downloadcrawl-ref-5924350ec00de6e908b5cd1aac887600bfa43dc3.tar.gz
crawl-ref-5924350ec00de6e908b5cd1aac887600bfa43dc3.zip
Resize the minimap region to take up more space.
This allows scrolling off the map but still being well within the (perceived) minimap region on screen to not reset the view.
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 550cee9f80..c6fbcc4a91 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -49,6 +49,21 @@ void Region::place(int _sx, int _sy, int margin)
recalculate();
}
+void Region::place(int _sx, int _sy, int _ex, int _ey, int margin)
+{
+ sx = _sx;
+ sy = _sy;
+ ex = _ex;
+ ey = _ey;
+ wx = ex - sx;
+ wy = ey - sy;
+ ox = margin;
+ oy = margin;
+
+ on_resize();
+}
+
+
void Region::place(int _sx, int _sy)
{
sx = _sx;