From 25eb3c101ab12d35465c50b99808ba80af78c516 Mon Sep 17 00:00:00 2001 From: trimbe Date: Mon, 24 Sep 2018 18:17:24 -0400 Subject: [PATCH] Fix clipping in fixed mode for edge snapping map points --- .../client/ui/overlay/worldmap/WorldMapOverlay.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/ui/overlay/worldmap/WorldMapOverlay.java b/runelite-client/src/main/java/net/runelite/client/ui/overlay/worldmap/WorldMapOverlay.java index 39623e5fa0..9e2286bcaf 100644 --- a/runelite-client/src/main/java/net/runelite/client/ui/overlay/worldmap/WorldMapOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/ui/overlay/worldmap/WorldMapOverlay.java @@ -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)