Fixed client frame offsets/padding (#557)

This commit is contained in:
Pazaz authored and GitHub committed 2023-01-28 20:37:33 +00:00
1 parent 8e750096cd
commit afdf369104
3 files changed
+13 -36

No files matched your search

+9 -13
View File
@@ -6,22 +6,18 @@ import java.awt.*;
final class RSFrame extends Frame {
public RSFrame(RSApplet RSApplet_, int i, int j) {
public RSFrame(RSApplet RSApplet_) {
rsApplet = RSApplet_;
setTitle(ClientSettings.SERVER_NAME + " World: " + ClientSettings.SERVER_WORLD);
setResizable(false);
setMinimumSize(new Dimension(i + 8, j + 28));
setVisible(true);
toFront();
setSize(i + 8, j + 28);
setLocationRelativeTo(null);
}
this.setResizable(false);
@Override
public Graphics getGraphics() {
Graphics g = super.getGraphics();
g.translate(4, 24);
return g;
this.setLayout(new BorderLayout());
this.add(rsApplet);
this.pack();
this.setVisible(true);
this.toFront();
this.setLocationRelativeTo(null);
}
@Override