There is a texture that should be full screen. It is 500x250 pixels. I put it like this:

batch.draw(background,0,0,screenWidth,screenHeight); 

It turns out that:

enter image description here

What can be used to stretch it under the screen?

    1 answer 1

    Write like this:

     batch.draw(background, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());