protected void renderScreen(Graphics renderer, IScreen screen, GameContainer window)
	{
		if (screen.getBackColor() != null)
			renderer.setBackground(screen.getBackColor());

		RenderImage backImage = screen.getBackImage();
		if (backImage != null)
		{
			if (screen.tileBackground())
			{
				for (int x = 0; x < window.getWidth(); x += backImage.getWidth())
					for (int y = 0; y < window.getHeight(); y += backImage.getHeight())
						backImage.setDrawX(x).setDrawY(y).render(renderer);
			}
			else
			{
				backImage.render(renderer);
			}
		}

		for (IRenderable renderable : screen.getComponents())
			renderable.render(renderer);
	}