Skip to content

Commit

Permalink
Fix Screen.renderBackground being called twice
Browse files Browse the repository at this point in the history
Fixes #226.
  • Loading branch information
Juuxel committed Nov 18, 2023
1 parent 9dac7f4 commit 8ac7945
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ protected void reposition(int screenWidth, int screenHeight) {
}

private void paint(DrawContext context, int mouseX, int mouseY, float delta) {
renderBackground(context, mouseX, mouseY, delta);

if (description!=null) {
context.getMatrices().push();
context.getMatrices().translate(0f, 0f, 0.01f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ public boolean keyReleased(int ch, int keyCode, int modifiers) {
protected void drawBackground(DrawContext context, float partialTicks, int mouseX, int mouseY) {} //This is just an AbstractContainerScreen thing; most Screens don't work this way.

private void paint(DrawContext context, int mouseX, int mouseY, float delta) {
renderBackground(context, mouseX, mouseY, delta);

if (description!=null) {
WPanel root = description.getRootPanel();
if (root!=null) {
Expand Down

0 comments on commit 8ac7945

Please sign in to comment.