Merge pull request #5619 from trimbe/world-map-clipping

Fix clipping in fixed mode for edge snapping map points
This commit is contained in:
Tomas Slusny
2018-09-25 07:47:05 +02:00
committed by GitHub

View File

@@ -92,7 +92,11 @@ public class WorldMapOverlay extends Overlay
final Rectangle worldMapRectangle = widget.getBounds();
final Area mapViewArea = getWorldMapClipArea(worldMapRectangle);
final Area canvasViewArea = getWorldMapClipArea(client.getCanvas().getBounds());
final Rectangle canvasBounds = client.getCanvas().getBounds();
// in fixed, the bounds are offset by the size of the black borders outside the canvas
canvasBounds.setLocation(0, 0);
final Area canvasViewArea = getWorldMapClipArea(canvasBounds);
WorldMapPoint tooltipPoint = null;
for (WorldMapPoint worldPoint : points)