Skip to content
Snippets Groups Projects

Fix spectator list not compensating for non-green resolutions

Merged Hanicef requested to merge Hanicef/SRB2Classic:fix-spectator-list-resolution into next

The spectator list at the bottom of the scoreboard on ringslinger gametypes had their text appear and disappear within the boundaries of the screen on non-green resolutions. This patch compensates for that by calculating text visibility relative to the actual screen resolution rather than the base resolution.

I also went ahead and removed a bunch of complexity within that function, since it does a lot of string juggling to stop drawing characters as soon as they go off-screen, something that looks like an optimization but dubious since the scoreboard is not even remotely a bottleneck and the performance loss caused by copying strings most likely counteracts the performance gain.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading