diff options
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r-- | crawl-ref/source/libgui.cc | 6 |
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) |