aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
index ff1e13e6b..c7750ddb3 100644
--- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
@@ -259,7 +259,7 @@ public class RecipeViewingScreen extends Screen {
@Override
public void draw(int mouseX, int mouseY, float delta) {
- this.drawGradientRect(0, 0, this.width, this.height, -1072689136, -804253680);
+ this.drawGradientRect(0, 0, this.screenWidth, this.screenHeight, -1072689136, -804253680);
if (selectedCategory != null)
selectedCategory.drawCategoryBackground(bounds, mouseX, mouseY, delta);
else {
@@ -282,7 +282,7 @@ public class RecipeViewingScreen extends Screen {
GuiHelper.getLastOverlay().drawOverlay(mouseX, mouseY, delta);
if (choosePageActivated) {
zOffset = 500.0f;
- this.drawGradientRect(0, 0, this.width, this.height, -1072689136, -804253680);
+ this.drawGradientRect(0, 0, this.screenWidth, this.screenHeight, -1072689136, -804253680);
zOffset = 0.0f;
recipeChoosePageWidget.draw(mouseX, mouseY, delta);
}