Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix Linux builds missing XRandR support #2419

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

rr-
Copy link
Collaborator

@rr- rr- commented Feb 1, 2025

Checklist

  • I have read the coding conventions
  • I have added a changelog entry about what my pull request accomplishes, or it is an internal change
  • I have added a readme entry about my new feature or OG bug fix, or it is a different change

Description

Resolves #2382. In essence, the fix involves installing a specific library. Without this library, SDL mistakenly perceives multiple monitors as a single expansive monitor that spans the entire working area. This results in errors in fullscreen mode, particularly affecting the calculation of positions and aspect ratios.

In TR1, the problem surfaces when I switch to another workspace and then return to the one with TR. The game then occupies only half the screen. Cycling through the workspaces again resolves the issue, but repeating the process brings the issue back. I assume this behavior is present since version 3.0 that marks the dawn of the Linux builds.

In TR2, the issue shows up differently. The way the shell and viewport modules are designed leads to the half screen fullscreen problem even when I don't switch workspaces. It gets worse with FMVs, causing positioning to be twice as off in fullscreen mode and creating aspect ratio problems even in windowed mode.

The attached changes require rebuilding the toolchain but do fix all of these issues. TR2 Linux builds aren't out yet, hence no change log entry there.

@rr- rr- requested review from a team as code owners February 1, 2025 01:27
@rr- rr- requested review from lahm86, walkawayy and aredfan and removed request for a team February 1, 2025 01:27
@rr- rr- self-assigned this Feb 1, 2025
@rr- rr- added TRX bug A bug with TRX Unreleased Applies to things that aren't in a stable release. TR2 TR1 labels Feb 1, 2025
@rr- rr- merged commit 1c16b6e into develop Feb 1, 2025
9 checks passed
@rr- rr- deleted the issue-2382-linux-xrandr-issues branch February 1, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TR1 TR2 TRX bug A bug with TRX Unreleased Applies to things that aren't in a stable release.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

TRX bug: multi-head setups cause weird viewport problems
3 participants