Skip to content

Commit

Permalink
Yet more code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed May 11, 2021
1 parent 2abfd60 commit 7393ab0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/rsmm/fabric/client/gui/MultimeterScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,8 @@ protected void renderContent(MatrixStack matrices, int mouseX, int mouseY, float
}

if (mouseScrollType == PULL) {
int maxScroll = (int)getMaxScrollAmount();

int screenHeight = getHeight();
int totalHeight = maxScroll + screenHeight;
int totalHeight = screenHeight + (int)getMaxScrollAmount();

int middle = scrollBarY + scrollBarHeight * ((int)scrollAmount + getHeight() / 2) / totalHeight;
int margin = 5;
Expand Down

0 comments on commit 7393ab0

Please sign in to comment.