v3.2.3: adjusted exit button sizing, no longer wide on desktop

This commit is contained in:
Evan Debenham
2025-09-02 11:10:50 -04:00
parent 3fd1205621
commit 14911f9202

View File

@@ -28,13 +28,14 @@ import com.shatteredpixel.shatteredpixeldungeon.scenes.TitleScene;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndKeyBindings; import com.shatteredpixel.shatteredpixeldungeon.windows.WndKeyBindings;
import com.watabou.input.GameAction; import com.watabou.input.GameAction;
import com.watabou.noosa.Game; import com.watabou.noosa.Game;
import com.watabou.utils.DeviceCompat;
public class ExitButton extends IconButton { public class ExitButton extends IconButton {
public ExitButton() { public ExitButton() {
super(Icons.EXIT.get()); super(Icons.EXIT.get());
width = PixelScene.landscape() ? 40 : 20; width = (PixelScene.landscape() && !DeviceCompat.isDesktop()) ? 40 : 20;
height = 20; height = 20;
} }