Fix|Refactor: Handle custom resolutions on custom paths

This commit is contained in:
Boulay Mathias 2022-11-01 16:37:37 +01:00
parent f52814f0dc
commit 00435f2fd7
7 changed files with 124 additions and 70 deletions

View file

@ -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));