diff --git a/runelite-client/src/main/java/net/runelite/client/ui/overlay/components/TextComponent.java b/runelite-client/src/main/java/net/runelite/client/ui/overlay/components/TextComponent.java index 5c7f47bf2a..3b10b3561b 100644 --- a/runelite-client/src/main/java/net/runelite/client/ui/overlay/components/TextComponent.java +++ b/runelite-client/src/main/java/net/runelite/client/ui/overlay/components/TextComponent.java @@ -60,15 +60,19 @@ public class TextComponent implements RenderableEntity final String textWithoutCol = Text.removeTags(textSplitOnCol); final String colColor = textSplitOnCol.substring(textSplitOnCol.indexOf("=") + 1, textSplitOnCol.indexOf(">")); - // shadow graphics.setColor(Color.BLACK); - graphics.drawString(textWithoutCol, x + 1, position.y + 1); if (outline) { - graphics.drawString(textWithoutCol, x - 1, position.y - 1); - graphics.drawString(textWithoutCol, x - 1, position.y + 1); - graphics.drawString(textWithoutCol, x + 1, position.y - 1); + graphics.drawString(textWithoutCol, x, position.y + 1); + graphics.drawString(textWithoutCol, x, position.y - 1); + graphics.drawString(textWithoutCol, x + 1, position.y); + graphics.drawString(textWithoutCol, x - 1, position.y); + } + else + { + // shadow + graphics.drawString(textWithoutCol, x + 1, position.y + 1); } // actual text @@ -80,15 +84,19 @@ public class TextComponent implements RenderableEntity } else { - // shadow graphics.setColor(Color.BLACK); - graphics.drawString(text, position.x + 1, position.y + 1); if (outline) { - graphics.drawString(text, position.x - 1, position.y - 1); - graphics.drawString(text, position.x - 1, position.y + 1); - graphics.drawString(text, position.x + 1, position.y - 1); + graphics.drawString(text, position.x, position.y + 1); + graphics.drawString(text, position.x, position.y - 1); + graphics.drawString(text, position.x + 1, position.y); + graphics.drawString(text, position.x - 1, position.y); + } + else + { + // shadow + graphics.drawString(text, position.x + 1, position.y + 1); } // actual text