HD Resize redraw

This commit is contained in:
downthecrop 2024-10-25 21:22:16 -07:00
parent b3c2adc51f
commit 4f8bf464c5
3 changed files with 14 additions and 19 deletions

View file

@ -182,6 +182,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
@OriginalMember(owner = "client!qh", name = "a", descriptor = "(Z)V")
public static void method3662() {
System.out.println("Moving...");
@Pc(8) Container local8;
if (fullScreenFrame != null) {
local8 = fullScreenFrame;
@ -514,9 +515,10 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
canvasScale = getCurrentDevice().getDefaultConfiguration().getDefaultTransform().getScaleX();
if (frame != null && fullScreenFrame == null) {
@Pc(84) Insets insets = frame.getInsets();
canvas.setLocation(insets.left + leftMargin, topMargin + insets.top);
// TODO: Add a flag to ignore this.
//canvas.setLocation(insets.left + leftMargin, topMargin + insets.top);
} else {
canvas.setLocation(leftMargin, topMargin);
//canvas.setLocation(leftMargin, topMargin);
}
}
this.mainRedraw();

View file

@ -203,7 +203,7 @@ public final class GlRenderer {
try {
pixelData = readPixels();
drawable.swapBuffers();
} catch (@Pc(3) Exception local3) {*,
} catch (@Pc(3) Exception local3) {
}
}