Skip to content

Allow windows to be wider than vanilla limits#3413

Merged
AaronVanGeffen merged 10 commits intoOpenLoco:masterfrom
AaronVanGeffen:larger-windows
Nov 29, 2025
Merged

Allow windows to be wider than vanilla limits#3413
AaronVanGeffen merged 10 commits intoOpenLoco:masterfrom
AaronVanGeffen:larger-windows

Conversation

@AaronVanGeffen
Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen commented Nov 11, 2025

Window frames use a single background sprite for their patterns, limiting window widths to 800px in vanilla. Under normal circumstances, we would just draw the background sprite repeatedly, however there is a border present as well. This PR reworks the background drawing to draw the background sprite repeatedly, starting on the right-hand side of the window, drawing over the border in the process.

To illustrate the new limits, the map window can now be resized to fit the entire map, rather than it being just too narrow.

@AaronVanGeffen AaronVanGeffen added this to the v25.11+ milestone Nov 15, 2025
@AaronVanGeffen AaronVanGeffen changed the title Allow for windows to be wider than vanilla Allow windows to be wider than vanilla limits Nov 17, 2025
@AaronVanGeffen AaronVanGeffen enabled auto-merge (squash) November 29, 2025 14:55
@AaronVanGeffen AaronVanGeffen merged commit c9ab3f1 into OpenLoco:master Nov 29, 2025
12 checks passed
@AaronVanGeffen AaronVanGeffen deleted the larger-windows branch November 29, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants