Skip to content

Commit 5c8d2dd

Browse files
committed
don't check for hidpi fix field
1 parent d0c6777 commit 5c8d2dd

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ dgt.java.version=8
1313
# Project Configuration
1414
project.group=org.polyfrost.oneconfig
1515
project.name=OneConfig
16-
project.version=1.0.0-alpha.162
16+
project.version=1.0.0-alpha.163

minecraft/src/main/java/org/polyfrost/oneconfig/internal/legacy/OneConfigTweaker.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ public OneConfigTweaker() {
9191
try {
9292
boolean supportsHiDPI = !Objects.equals(System.getProperty("os.arch"), "aarch64");
9393
if (!supportsHiDPI) {
94-
try {
95-
Class<?> clazz = Class.forName("org.lwjgl.Sys", false, OneConfigMixinInit.class.getClassLoader());
96-
try {
97-
clazz.getDeclaredField("HAS_HIDPI_FIX");
98-
supportsHiDPI = true;
99-
} catch (NoSuchFieldException ignored) {
100-
// Field not found, continue with the default value
101-
}
102-
} catch (ClassNotFoundException ignored) {
103-
104-
}
94+
//try {
95+
// Class<?> clazz = Class.forName("org.lwjgl.Sys", false, OneConfigMixinInit.class.getClassLoader());
96+
// try {
97+
// clazz.getDeclaredField("HAS_HIDPI_FIX");
98+
// supportsHiDPI = true;
99+
// } catch (NoSuchFieldException ignored) {
100+
// // Field not found, continue with the default value
101+
// }
102+
//} catch (ClassNotFoundException ignored) {
103+
//
104+
//}
105105
}
106106
if (!supportsHiDPI) {
107107
injectLWJGLFix();

minecraft/versions/1.8.9-fabric/src/main/java/org/polyfrost/oneconfig/internal/OneConfigPreLaunch.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ public void onPreLaunch() {
2727
try {
2828
boolean supportsHiDPI = !Objects.equals(System.getProperty("os.arch"), "aarch64");
2929
if (!supportsHiDPI) {
30-
try {
31-
Class<?> clazz = Class.forName("org.lwjgl.Sys", false, OneConfigMixinInit.class.getClassLoader());
32-
try {
33-
clazz.getDeclaredField("HAS_HIDPI_FIX");
34-
supportsHiDPI = true;
35-
} catch (NoSuchFieldException ignored) {
36-
// Field not found, continue with the default value
37-
}
38-
} catch (ClassNotFoundException ignored) {
39-
40-
}
30+
//try {
31+
// Class<?> clazz = Class.forName("org.lwjgl.Sys", false, OneConfigMixinInit.class.getClassLoader());
32+
// try {
33+
// clazz.getDeclaredField("HAS_HIDPI_FIX");
34+
// supportsHiDPI = true;
35+
// } catch (NoSuchFieldException ignored) {
36+
// // Field not found, continue with the default value
37+
// }
38+
//} catch (ClassNotFoundException ignored) {
39+
//
40+
//}
4141
}
4242
if (!supportsHiDPI) {
4343
injectLWJGLFix();

0 commit comments

Comments
 (0)