mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
(Possibly) Fix the hotbar
This commit is contained in:
parent
0d36b827df
commit
df3a908df0
1 changed files with 3 additions and 3 deletions
|
|
@ -1163,7 +1163,7 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
|
||||
public void calculateMcScale() {
|
||||
int scale = 1;
|
||||
while (CallbackBridge.windowWidth / (scale + 1) >= 320 && CallbackBridge.windowHeight / (scale + 1) >= 240) {
|
||||
while (CallbackBridge.physicalWidth / (scale + 1) >= 320 && CallbackBridge.physicalHeight / (scale + 1) >= 240) {
|
||||
scale++;
|
||||
}
|
||||
this.guiScale = scale;
|
||||
|
|
@ -1174,8 +1174,8 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
|
||||
int barheight = mcscale(20);
|
||||
int barwidth = mcscale(180);
|
||||
int barx = (CallbackBridge.windowWidth / 2) - (barwidth / 2);
|
||||
int bary = CallbackBridge.windowHeight - barheight;
|
||||
int barx = (CallbackBridge.physicalWidth / 2) - (barwidth / 2);
|
||||
int bary = CallbackBridge.physicalHeight - barheight;
|
||||
if (x < barx || x >= barx + barwidth || y < bary || y >= bary + barheight) {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue