Merge remote-tracking branch 'runelite/master'
This commit is contained in:
@@ -115,8 +115,8 @@ public class LocalPoint
|
||||
public static LocalPoint fromScene(int x, int y)
|
||||
{
|
||||
return new LocalPoint(
|
||||
(x << Perspective.LOCAL_COORD_BITS) + (1 << Perspective.LOCAL_COORD_BITS - 1) - 1,
|
||||
(y << Perspective.LOCAL_COORD_BITS) + (1 << Perspective.LOCAL_COORD_BITS - 1) - 1
|
||||
(x << Perspective.LOCAL_COORD_BITS) + (1 << Perspective.LOCAL_COORD_BITS - 1),
|
||||
(y << Perspective.LOCAL_COORD_BITS) + (1 << Perspective.LOCAL_COORD_BITS - 1)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ import net.runelite.client.util.ColorUtil;
|
||||
public class OverlayUtil
|
||||
{
|
||||
private static final int MINIMAP_DOT_RADIUS = 4;
|
||||
private static final double UNIT = Math.PI / 1024.0d;
|
||||
|
||||
public static void renderPolygon(Graphics2D graphics, Shape poly, Color color)
|
||||
{
|
||||
@@ -79,12 +78,12 @@ public class OverlayUtil
|
||||
|
||||
public static void renderMinimapRect(Client client, Graphics2D graphics, Point center, int width, int height, Color color)
|
||||
{
|
||||
double angle = client.getMapAngle() * UNIT;
|
||||
double angle = client.getMapAngle() * Perspective.UNIT;
|
||||
|
||||
graphics.setColor(color);
|
||||
graphics.rotate(angle, center.getX(), center.getY());
|
||||
graphics.drawRect(center.getX() - width / 2, center.getY() - height / 2, width, height);
|
||||
graphics.rotate(-angle , center.getX(), center.getY());
|
||||
graphics.drawRect(center.getX() - width / 2, center.getY() - height / 2, width - 1, height - 1);
|
||||
graphics.rotate(-angle, center.getX(), center.getY());
|
||||
}
|
||||
|
||||
public static void renderTextLocation(Graphics2D graphics, Point txtLoc, String text, Color color)
|
||||
|
||||
Reference in New Issue
Block a user