Skip to content

Clip render target for widgets, do not draw them with window relatives#3123

Merged
ZehMatt merged 2 commits intoOpenLoco:masterfrom
ZehMatt:widget-canvas
Jul 8, 2025
Merged

Clip render target for widgets, do not draw them with window relatives#3123
ZehMatt merged 2 commits intoOpenLoco:masterfrom
ZehMatt:widget-canvas

Conversation

@ZehMatt
Copy link
Copy Markdown
Contributor

@ZehMatt ZehMatt commented Jun 13, 2025

Now windows and widgets will always use the local coordinate space for drawing.

Copy link
Copy Markdown
Contributor

@duncanspumpkin duncanspumpkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible haven't tested it

@ZehMatt ZehMatt added this to the v25.05+ milestone Jun 16, 2025
@ZehMatt
Copy link
Copy Markdown
Contributor Author

ZehMatt commented Jun 16, 2025

I tested most of the things myself to see if any oddities stick out but would be good for another pair of eyes to have a look.

@duncanspumpkin duncanspumpkin modified the milestones: v25.05+, v25.06+ Jun 30, 2025
@AaronVanGeffen

This comment was marked as outdated.

Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All fine as far as I'm concerned. I realise the viewport situation was resolved with a hack, but it's fine for now.

Windows tested

  • About
  • AboutMusic
  • BuildVehicle
  • Cheats
  • CompanyFaceSelection
  • CompanyList
  • CompanyWindow
  • Construction/ConstructionTab
  • Construction/OverheadTab
  • Construction/SignalTab
  • Construction/StationTab
  • DebugWindow
  • DragVehiclePart
  • Dropdown
  • EditKeyboardShortcut
  • Error
  • IndustryList
  • IndustryWindow
  • KeyboardShortcuts
  • LandscapeGeneration
  • LandscapeGenerationConfirm
  • Main
  • MapToolTip
  • MapWindow
  • MessageWindow
  • MusicSelection
  • NetworkStatus
  • News/News
  • News/Ticker
  • ObjectLoadError
  • ObjectSelectionWindow
  • Options
  • PlayerInfoPanel
  • ProgressBar
  • PromptBrowseWindow
  • PromptOkCancelWindow
  • PromptSaveWindow
  • ScenarioOptions
  • ScenarioSelect
  • StationList
  • StationWindow
  • TerraForm
  • TextInputWindow
  • TileInspector
  • TimePanel
  • TitleExit
  • TitleLogo
  • TitleMenu
  • TitleOptions
  • TitleVersion
  • ToolbarBottomEditor
  • ToolbarTop
  • ToolbarTopAlt
  • ToolbarTopCommon
  • ToolTip
  • TownList
  • TownWindow
  • Tutorial
  • Vehicle
  • VehicleList

@ZehMatt ZehMatt merged commit a6c90dc into OpenLoco:master Jul 8, 2025
10 checks passed
@ZehMatt ZehMatt deleted the widget-canvas branch July 8, 2025 21:05
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.

3 participants