diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-07-17 08:57:12 -0700 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-07-17 09:01:55 -0700 |
commit | 5924350ec00de6e908b5cd1aac887600bfa43dc3 (patch) | |
tree | 9057bf195c4408a1573287ca718ea4ba14bb3ee6 /crawl-ref/source/tilereg.cc | |
parent | 6bb769da38d426fed82aab01497bcdf5179c4c1b (diff) | |
download | crawl-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.cc | 15 |
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; |