mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Fixed client frame offsets/padding (#557)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user