Skip to content

Commit

Permalink
fix preprocessor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nextdayy committed Nov 29, 2024
1 parent a7cece2 commit d52bd00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public abstract class MinecraftMixin {
@Shadow
private Timer timer;

//#if MC<11300
@Shadow public int displayWidth;
@Shadow public int displayHeight;
@Shadow private int tempDisplayWidth;
@Shadow private int tempDisplayHeight;
//#endif

//@formatter:off
@Unique
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* <https://polyfrost.org/legal/oneconfig/additional-terms>
*/

//#if MC<11300
package org.polyfrost.oneconfig.internal.mixin.hidpi;

import net.minecraft.client.Minecraft;
Expand All @@ -45,3 +46,4 @@ private int hiDpiFixMouseY(Minecraft mc) {
return (int) (mc.displayHeight / Display.getPixelScaleFactor());
}
}
//#endif
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* <https://polyfrost.org/legal/oneconfig/additional-terms>
*/

//#if MC<11300
package org.polyfrost.oneconfig.internal.mixin.hidpi;

import net.minecraft.client.LoadingScreenRenderer;
Expand All @@ -38,3 +39,4 @@ private int hiDpiFixSplashScale(int value) {
return (int) (value * org.lwjgl.opengl.Display.getPixelScaleFactor());
}
}
//#endif

0 comments on commit d52bd00

Please sign in to comment.