Skip to content

Commit

Permalink
Upscale playfield by difference in game height as well
Browse files Browse the repository at this point in the history
I honestly don't have much clue about this one but doing so matches master.
  • Loading branch information
frenzibyte committed Jan 19, 2024
1 parent f5ce9ea commit fa2c33c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -53,7 +53,7 @@ protected override void Update()
// Note that the relative height cannot exceed one-third - if that limit is hit, the playfield will be exactly centered.
Y = relativeHeight;

Scale = new Vector2(Math.Max(relativeHeight / base_relative_height, 1f));
Scale = new Vector2(Math.Max((Parent!.ChildSize.Y / 768f) * (relativeHeight / base_relative_height), 1f));
Width = 1 / Scale.X;
}
}
Expand Down

0 comments on commit fa2c33c

Please sign in to comment.