File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
versions/src/main/java/org/polyfrost/oneconfig/internal/mixin Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,12 @@ public abstract class MinecraftMixin {
4848 @ Shadow
4949 private Timer timer ;
5050
51+ //#if MC<11300
5152 @ Shadow public int displayWidth ;
5253 @ Shadow public int displayHeight ;
5354 @ Shadow private int tempDisplayWidth ;
5455 @ Shadow private int tempDisplayHeight ;
56+ //#endif
5557
5658 //@formatter:off
5759 @ Unique
Original file line number Diff line number Diff line change 2424 * <https://polyfrost.org/legal/oneconfig/additional-terms>
2525 */
2626
27+ //#if MC<11300
2728package org .polyfrost .oneconfig .internal .mixin .hidpi ;
2829
2930import net .minecraft .client .Minecraft ;
@@ -45,3 +46,4 @@ private int hiDpiFixMouseY(Minecraft mc) {
4546 return (int ) (mc .displayHeight / Display .getPixelScaleFactor ());
4647 }
4748}
49+ //#endif
Original file line number Diff line number Diff line change 2424 * <https://polyfrost.org/legal/oneconfig/additional-terms>
2525 */
2626
27+ //#if MC<11300
2728package org .polyfrost .oneconfig .internal .mixin .hidpi ;
2829
2930import net .minecraft .client .LoadingScreenRenderer ;
@@ -38,3 +39,4 @@ private int hiDpiFixSplashScale(int value) {
3839 return (int ) (value * org .lwjgl .opengl .Display .getPixelScaleFactor ());
3940 }
4041}
42+ //#endif
You can’t perform that action at this time.
0 commit comments