Skip to content

Commit ee3463e

Browse files
Copilotwinnerspiros
andcommitted
Also guard DrawHeight > 0 in ScalingContainerTargetDrawSize
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/2d6db8b8-e94e-4a7e-9e29-c6d7a9c9cbc9 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 101477c commit ee3463e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

osu.Android/OsuGameAndroid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public partial class OsuGameAndroid : OsuGame
2828

2929
private readonly PackageInfo? packageInfo;
3030

31-
public override Vector2 ScalingContainerTargetDrawSize => DrawWidth > 0
31+
public override Vector2 ScalingContainerTargetDrawSize => DrawWidth > 0 && DrawHeight > 0
3232
? new Vector2(1024, 1024 * DrawHeight / DrawWidth)
3333
: new Vector2(1024, 768);
3434

0 commit comments

Comments
 (0)