public void setViewport(int width, int height) { super.setViewport(width, height, true); logic.setScreen(width, height, defineGameRect(width, height)); snappers.defineSnapperViews(); }
public void resizeGameRect(int marginBottom) { int marginTop = Math.round(Metrics.squareButtonSize * 1.1f); Rect gameRect = new Rect(0, (int) height - marginTop, (int) width, marginBottom); logic.setScreen((int) width, (int) height, gameRect); snappers.updatePositions(); }