mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-17 20:10:12 -07:00
Fix|Refactor: Handle custom resolutions on custom paths
This commit is contained in:
parent
f52814f0dc
commit
00435f2fd7
7 changed files with 124 additions and 70 deletions
|
|
@ -53,7 +53,7 @@ public class MinecraftGLSurface extends View {
|
|||
private final TapDetector mSingleTapDetector = new TapDetector(1, TapDetector.DETECTION_METHOD_BOTH);
|
||||
private final TapDetector mDoubleTapDetector = new TapDetector(2, TapDetector.DETECTION_METHOD_DOWN);
|
||||
/* MC GUI scale, listened by MCOptionUtils */
|
||||
private int mGuiScale = getMcScale();
|
||||
private int mGuiScale;
|
||||
private final MCOptionUtils.MCOptionListener mGuiScaleListener = () -> mGuiScale = getMcScale();
|
||||
/* Surface ready listener, used by the activity to launch minecraft */
|
||||
SurfaceReadyListener mSurfaceReadyListener = null;
|
||||
|
|
@ -621,7 +621,6 @@ public class MinecraftGLSurface extends View {
|
|||
refreshSize();
|
||||
|
||||
//Load Minecraft options:
|
||||
MCOptionUtils.load();
|
||||
MCOptionUtils.set("fullscreen", "off");
|
||||
MCOptionUtils.set("overrideWidth", String.valueOf(windowWidth));
|
||||
MCOptionUtils.set("overrideHeight", String.valueOf(windowHeight));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue