summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 02:31:58 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 02:31:58 +0000
commite1f1dbd2ba852c17344b86e9fc131936b4258606 (patch)
tree4bee0b362273c8335b50befd105974a28b498ede /crawl-ref/source/libgui.cc
parented05654d265fc1892910a9c6958880837d67560a (diff)
downloadcrawl-ref-e1f1dbd2ba852c17344b86e9fc131936b4258606.tar.gz
crawl-ref-e1f1dbd2ba852c17344b86e9fc131936b4258606.zip
[1940992] Fixed minimap travel/view issues. This fixes both the "off by three squares" as well as an unmentioned "off by two pixels" issue.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4401 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r--crawl-ref/source/libgui.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 4ade6d9bb3..a63497d717 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -596,7 +596,7 @@ void libgui_init()
new MapRegionClass(MAP_XMAX+map_margin,
MAP_YMAX+map_margin,
map_margin, map_margin,
- false);
+ 2);
region_map->id = REGION_MAP;
region_map->dx = map_px;
region_map->dy = map_px;
@@ -1153,8 +1153,8 @@ int convert_cursor_pos(int mx, int my, int *cx, int *cy)
if (id == REGION_MAP)
{
- x -= gmap_ox + region_map->x_margin + 1;
- y -= gmap_oy + region_map->y_margin + 1;
+ x -= gmap_ox - region_map->marker_length + 1;
+ y -= gmap_oy - region_map->marker_length + 1;
}
if (id == REGION_INV1 || id == REGION_INV2)