code: public void setResolution()
  	{
  		boolean set = resolution == null;
  		set |= displayWidth != Display.getWidth() || displayHeight != Display.getHeight();
  		set |= currentGuiScale != mc.gameSettings.guiScale;
  
  		if (!set)
  			return;
  
  		displayWidth = Display.getWidth();
  		displayHeight = Display.getHeight();
  		currentGuiScale = mc.gameSettings.guiScale;
  
  		resolution = new ScaledResolution(mc);
  		renderer.setScaleFactor(resolution.getScaleFactor());
  
  		width = renderer.isIgnoreScale() ? displayWidth : resolution.getScaledWidth();
  		height = renderer.isIgnoreScale() ? displayHeight : resolution.getScaledHeight();
  
  		screen.setSize(Size.of(width, height));
  	}
docs: Sets the resolution for this {@link MalisisGui}.