From fa43ca94dbe97235feb54d4fdce499a6be3f555e Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 8 Jan 2021 17:53:12 -0500 Subject: [PATCH] npc highlight: revert fill color behavior Prior to ab4cf1afe913879f9d0c1b031d77798b0b6c865e this already accepted an alpha color and so this introduced a behavior change when picking a color with alpha --- .../runelite/client/plugins/npchighlight/NpcSceneOverlay.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java index 3fdaeb114a..441d811a97 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/npchighlight/NpcSceneOverlay.java @@ -48,7 +48,6 @@ import net.runelite.client.ui.overlay.Overlay; import net.runelite.client.ui.overlay.OverlayLayer; import net.runelite.client.ui.overlay.OverlayPosition; import net.runelite.client.ui.overlay.OverlayUtil; -import net.runelite.client.util.ColorUtil; import net.runelite.client.util.Text; public class NpcSceneOverlay extends Overlay @@ -200,7 +199,7 @@ public class NpcSceneOverlay extends Overlay graphics.setColor(color); graphics.setStroke(new BasicStroke(2)); graphics.draw(polygon); - graphics.setColor(ColorUtil.colorWithAlpha(color, color.getAlpha() / 12)); + graphics.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), 20)); graphics.fill(polygon); } }