Skip to content

Commit

Permalink
Remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
Promises committed Sep 7, 2024
1 parent febc62c commit df30032
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/org/runejs/client/frame/ScreenController.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,17 @@ public static void frameMode(ScreenMode screenMode) {
public static void refreshFrameSize() {
if(Game.gameStatusCode == 5 || Game.gameStatusCode == 10 || Game.gameStatusCode == 20) {
MovedStatics.clearScreen = true;
// LoginScreen.recalculateOffsets();
}
MovedStatics.width = drawWidth;
MovedStatics.height = drawHeight;
if (frameMode != ScreenMode.FIXED) {
if (frameWidth != GameShell.clientFrame.getWidth()) {
frameWidth = GameShell.clientFrame.getWidth();
setBounds();
// LoginScreen.recalculateOffsets();
}
if (frameHeight != GameShell.clientFrame.getHeight()) {
frameHeight = GameShell.clientFrame.getHeight();
setBounds();
// LoginScreen.recalculateOffsets();
}
}
}
Expand Down Expand Up @@ -116,7 +113,6 @@ public static void setBounds() {
if (Game.gameStatusCode <= 35 && Game.gameStatusCode >= 30) {
MovedStatics.gameScreenImageProducer = MovedStatics.createGraphicsBuffer(ScreenController.frameMode == ScreenMode.FIXED ? 512 : ScreenController.drawWidth, ScreenController.frameMode == ScreenMode.FIXED ? 334 : ScreenController.drawHeight, GameShell.clientFrame);
} else {
// Game.gameCanvas.setSize(MovedStatics.width, MovedStatics.height);
Game.gameCanvas.setSize(ScreenController.drawWidth, ScreenController.drawHeight);
Game.gameCanvas.setVisible(true);
if (GameShell.clientFrame == null)
Expand Down

0 comments on commit df30032

Please sign in to comment.