Merge pull request #872 from devLotto/issue-846

runelite-api: fix worldToMiniMap not working correctly in stretched mode
This commit is contained in:
Adam
2018-03-06 20:51:59 -05:00
committed by GitHub

View File

@@ -230,7 +230,9 @@ public class Perspective
int xx = y * sin + cos * x >> 16;
int yy = sin * x - y * cos >> 16;
int miniMapX = client.getCanvas().getWidth() - (!client.isResized() ? 208 : 167);
int miniMapX = client.isResized()
? client.getCanvas().getWidth() - 167
: Constants.GAME_FIXED_WIDTH - 208;
x = (miniMapX + 167 / 2) + xx;
y = (167 / 2 - 1) + yy;