undo some testing changes

This commit is contained in:
downthecrop 2024-10-28 16:32:51 -07:00
parent cb9758f7d5
commit cf5ccbf1ac
3 changed files with 6 additions and 8 deletions

View file

@ -323,7 +323,6 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
@OriginalMember(owner = "client!rc", name = "b", descriptor = "(B)V")
public final synchronized void addCanvas() {
if (canvas != null) {
// Remove the old canvas if it exists
canvas.removeFocusListener(this);
canvas.getParent().remove(canvas);
}
@ -514,10 +513,9 @@ 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();
// TODO: Add a flag to ignore this.
//canvas.setLocation(insets.left + leftMargin, topMargin + insets.top);
canvas.setLocation(insets.left + leftMargin, topMargin + insets.top);
} else {
//canvas.setLocation(leftMargin, topMargin);
canvas.setLocation(leftMargin, topMargin);
}
}
this.mainRedraw();

View file

@ -73,7 +73,7 @@ public final class GlRenderer {
private static int maxTextureCoords;
@OriginalMember(owner = "client!tf", name = "E", descriptor = "Lgl!javax/media/opengl/GLDrawable;")
public static GLDrawable drawable;
private static GLDrawable drawable;
@OriginalMember(owner = "client!tf", name = "H", descriptor = "Z")
public static boolean arbVertexProgramSupported;