height = Math.max(1, height);
this.width = width;
this.height = height;
Gdx.gl.glViewport(0, 0, width, height);
ApplicationListener listener = Gdx.app.getApplicationListener();
if (listener != null) listener.resize(width, height);
requestRendering();
}
void positionChanged (int x, int y) {
this.x = x;