@Override public void drawScreen(int var1, int var2, float var3) { switch (backgroundType) { case 0: { drawDefaultBackground(); break; } case 1: { drawBackground(0); break; } default: { break; } } LWJGLRenderer var4 = (LWJGLRenderer) GuiWidgetScreen.getInstance().gui.getRenderer(); ScaledResolution var5 = new ScaledResolution( GuiWidgetScreen.getInstance().minecraftInstance.gameSettings, GuiWidgetScreen.getInstance().minecraftInstance.displayWidth, GuiWidgetScreen.getInstance().minecraftInstance.displayHeight); RenderScale.scale = var5.getScaleFactor(); var4.syncViewportSize(); GuiWidgetScreen.getInstance().gui.update(); }