diff --git a/ui/src/main/java/dev/quoije/umd/ui/PlayerApp.java b/ui/src/main/java/dev/quoije/umd/ui/PlayerApp.java index 8c80233..8dbf232 100644 --- a/ui/src/main/java/dev/quoije/umd/ui/PlayerApp.java +++ b/ui/src/main/java/dev/quoije/umd/ui/PlayerApp.java @@ -35,8 +35,8 @@ import java.nio.file.Path; /** JavaFX application entry point for the UMD player. */ public final class PlayerApp extends Application { - private static final int WIDTH = 854; - private static final int HEIGHT = 480; + private static final int WIDTH = 480; + private static final int HEIGHT = 272; private Canvas menuCanvas; private Canvas videoCanvas; @@ -198,12 +198,8 @@ public final class PlayerApp extends Application { g.setFill(Color.BLACK); g.fillRect(0, 0, canvasWidth, canvasHeight); - double scale = java.lang.Math.min(canvasWidth / image.getWidth(), canvasHeight / image.getHeight()); - double drawWidth = image.getWidth() * scale; - double drawHeight = image.getHeight() * scale; - double x = (canvasWidth - drawWidth) / 2; - double y = (canvasHeight - drawHeight) / 2; - g.drawImage(image, x, y, drawWidth, drawHeight); + // The PSP stretches the anamorphic 720x480 frame to fill 480x272. + g.drawImage(image, 0, 0, canvasWidth, canvasHeight); }); }