mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
- Added a null check, default to auto scale.
This commit is contained in:
parent
641e502bb3
commit
bd6342d256
1 changed files with 3 additions and 1 deletions
|
|
@ -1173,7 +1173,9 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
|
||||
public void getMcScale() {
|
||||
//Get the scale stored in game files, used auto scale if found or if the stored scaled is bigger than the authorized size.
|
||||
this.guiScale = Integer.parseInt(MCOptionUtils.get("guiScale"));
|
||||
String str = MCOptionUtils.get("guiScale");
|
||||
this.guiScale = (str == null ? 0 :Integer.parseInt(str));
|
||||
|
||||
|
||||
int scale = Math.max(Math.min(CallbackBridge.windowWidth / 320, CallbackBridge.windowHeight / 240), 1);
|
||||
if(scale < this.guiScale || guiScale == 0){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue