mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-13 01:51:30 -07:00
Make use of the getMCScale from MCOptionUtils
This commit is contained in:
parent
68aeae45e2
commit
304a84a13b
2 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import java.io.*;
|
||||||
|
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_SUSTAINED_PERFORMANCE;
|
||||||
|
import static net.kdt.pojavlaunch.utils.MCOptionUtils.getMcScale;
|
||||||
|
|
||||||
public class MainActivity extends BaseMainActivity {
|
public class MainActivity extends BaseMainActivity {
|
||||||
public static ControlLayout mControlLayout;
|
public static ControlLayout mControlLayout;
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.DIRECTI
|
||||||
import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.DIRECTION_SOUTH_WEST;
|
import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.DIRECTION_SOUTH_WEST;
|
||||||
import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.DIRECTION_WEST;
|
import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.DIRECTION_WEST;
|
||||||
import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.isJoystickEvent;
|
import static net.kdt.pojavlaunch.customcontrols.gamepad.GamepadJoystick.isJoystickEvent;
|
||||||
|
import static net.kdt.pojavlaunch.utils.MCOptionUtils.getMcScale;
|
||||||
|
|
||||||
public class Gamepad {
|
public class Gamepad {
|
||||||
|
|
||||||
|
|
@ -100,7 +101,7 @@ public class Gamepad {
|
||||||
this.gameActivity = gameActivity;
|
this.gameActivity = gameActivity;
|
||||||
pointerView = this.gameActivity.findViewById(R.id.console_pointer);
|
pointerView = this.gameActivity.findViewById(R.id.console_pointer);
|
||||||
pointerView.getDrawable().setFilterBitmap(false);
|
pointerView.getDrawable().setFilterBitmap(false);
|
||||||
notifyGUISizeChange(gameActivity.getMcScale());
|
notifyGUISizeChange(getMcScale());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue