title: LibGDX spritebatch resize relative to screen size
body: <p>here is my problem. I'm trying to render a texture using LibGDX, with it's position and width relative to the screen size. Here's how I do it:</p>
  
  <pre><code>public void render(float delta) {
      Gdx.gl.glClearColor(1, 0, 1, 1);
      Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  
      batch.begin();
      batch.draw(logo.getKeyFrame(frame), (Gdx.graphics.getWidth() / 2) - (logo.getKeyFrame(frame).getRegionWidth() / 2), Gdx.graphics.getHeight() - logo.getKeyFrame(frame).getRegionHeight());
      batch.end();
  
      stage.act(delta);
      stage.draw();
  }
  
  @Override
  public void resize(int width, int height) {
      stage.getViewport().update(width, height, true);
  }
  </code></pre>
  
  <p>The problem is, when I try to resize the window, the image doesn't get rendered where it should be. Is there any way to fix this? </p>
  
  <p>Thanks :)</p>