il codice non è sbagliato, ma meglio usare un if...else

Codice PHP:
if (Stage.width Stage.height) {
    
sfondo._width Stage.width;
    
sfondo._height Stage.width 1.3;
} else {
    
sfondo._height Stage.height;
    
sfondo._width Stage.height 1.3;