Scale Saturn's screens by their GUI scale setting

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-09-28 18:59:47 +02:00
co-authored by claude
parent 167010380e
commit b108cc1f4a
2 changed files with 7 additions and 5 deletions
+1 -1
Submodule common updated: ef0ead6bf8...a7e3e537b1
@@ -86,8 +86,10 @@ public class SaturnScreenFabric extends Screen implements ScreenProvider {
} }
long elapsed = Duration.between(screen.start, Instant.now()).toMillis(); long elapsed = Duration.between(screen.start, Instant.now()).toMillis();
mouseX *= 2; screen.updateScale();
mouseY *= 2;
mouseX = (int) (mouseX / screen.scale);
mouseY = (int) (mouseY / screen.scale);
// From 1.21.6 the background, blur included, is drawn in renderBackground. // From 1.21.6 the background, blur included, is drawn in renderBackground.
//? if <1.21.6 { //? if <1.21.6 {
@@ -245,11 +247,11 @@ public class SaturnScreenFabric extends Screen implements ScreenProvider {
@Override @Override
public int getWidth() { public int getWidth() {
return width * 2; return width;
} }
@Override @Override
public int getHeight() { public int getHeight() {
return height * 2; return height;
} }
} }