Bound tooltips to screen properly

This commit is contained in:
Chicken-Bomes committed 2014-06-29 14:28:15 +10:00
1 parent ba15e4b116
commit e7c670b1d3
1 file changed
+4 -1
+4 -1
View File
@@ -177,7 +177,10 @@ public class GuiDraw
}
if (x < 8) x = 8;
else if (x > displaySize().width - w - 8) x -= 24 + w;//flip side of cursor
else if (x > displaySize().width - w - 8) {
x -= 24 + w;//flip side of cursor
if(x < 8) x = 8;
}
y = (int) MathHelper.clip(y, 8, displaySize().height - 8 - h);
gui.incZLevel(300);