1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00
Commit Graph

1507 Commits

Author SHA1 Message Date
Matt
42df41efdb Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs

* Fix all the users

* clang-format fix

* Fix linux builds
2025-05-15 22:46:06 +03:00
Matt
6335c31336 Rename DrawPixelInfo to RenderTarget (#24339)
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget

* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
mix
9ace1a8a2b Fix #24303: Track pieces do not draw in the ride construction window 2025-04-29 02:28:12 +01:00
Aaron van Geffen
7e9cc6df5d Merge pull request #24288 from AaronVanGeffen/close-buttons
Generalise white close button strings to all translucent title bars
2025-04-26 11:30:29 +02:00
ζeh Matt
12063aa884 Rename SetLocation to SetViewportLocation, this is less confusing 2025-04-25 17:48:39 +03:00
ζeh Matt
7a764a05a8 Ensure we invalidate the window when changing viewport location 2025-04-25 17:48:39 +03:00
ζeh Matt
8503faa289 Set viewport location immediately, fixes rotation using stale position 2025-04-25 17:48:39 +03:00
ζeh Matt
eb6b554d77 Fix screenshots not having a render context 2025-04-25 17:48:37 +03:00
ζeh Matt
576a757200 Add safe guards to make sure we have a valid drawing context 2025-04-25 17:48:37 +03:00
ζeh Matt
e3062985c0 Fix code calling ViewportUpdatePosition this is incorrect 2025-04-25 17:48:37 +03:00
ζeh Matt
c9bba5ee63 Workaround for OpenGL renderer viewport panning, turn it into a hybrid 2025-04-25 17:48:36 +03:00
ζeh Matt
911f821245 Simplify + clang-format correction 2025-04-25 17:48:36 +03:00
ζeh Matt
6d63b1f752 Skip dead windows in some iterations 2025-04-25 17:48:36 +03:00
Gymnasiast
734c0959ef Widen WindowFlags to 32 bits 2025-04-19 14:07:02 +02:00
Aaron van Geffen
a8267412c2 Move title height helper functions to WindowBase and fix FlexUI plugins 2025-04-11 23:26:34 +02:00
Aaron van Geffen
883845bcf9 Use larger cross glyph for close button when title bar is enlarged 2025-04-11 20:39:26 +02:00
Aaron van Geffen
3f87e2b67a Centralise ResizeFrame in WindowBase and call when setting widgets or resizing 2025-04-11 20:37:54 +02:00
Aaron van Geffen
6d7b312e7a Make WF_NO_TITLE_BAR actually fit in the uint16_t that is WindowBase::flags 2025-03-14 14:08:14 +01:00
Michael Steenbeek
8d1bb273d8 WIP: Make title bar bigger in Enlarged UI mode 2025-02-24 18:18:12 +01:00
Aaron van Geffen
807a2fa7c9 Merge objective options into scenario options 2025-03-13 13:57:03 +01:00
Duncan
d5de6c2b49 Start Simplifying CMake code (#24177)
* Use generator expressions

* Update cmake minimum

* Move options and remove project name

* Use further generator expressions

* Try upgrading to CMake 3.25 on Ubuntu 22.04 CI

Install software-properties-common

* Standardise with DISABLE_TTF for disable defines

* Set X64 var differently due to unknown reasons

---------

Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com>
2025-04-11 16:09:52 +01:00
Garrett Leach
3578216d4d Remove unused includes (#24186)
Processing GameAction.h takes the most amount of time (in the Windows build) when rebuiding libopenrct2. Reducing the includes should speed the build up by a tiny bit. Window.h used the most processing time for libopenrct2-ui.
2025-04-10 18:05:41 +02:00
Michael Steenbeek
cfb4b008b2 Create weak enum for PaletteIndex 2025-04-09 16:47:22 +02:00
Aaron van Geffen
99836faeff Rename Window_internal unit to WindowBase for consistency (#24163) 2025-04-06 17:43:36 +02:00
Gymnasiast
2002f697e0 Refactor INPUT_FLAGS into FlagHolder 2025-03-26 13:00:54 +01:00
Gymnasiast
41dc87c68e Refactor DRAWING_ENGINE_FLAGS into FlagHolder 2025-03-26 12:43:21 +01:00
Gymnasiast
b26a2953d7 Rename IMAGE_FORMAT and its members 2025-03-26 11:59:12 +01:00
Gymnasiast
14b881e22b Rename DIRID and its members 2025-03-25 23:39:27 +01:00
Gymnasiast
622a8dc525 Rename DIRBASE and its members 2025-03-25 22:47:09 +01:00
Matt
94be70f8a8 Merge pull request #24034 from Gymnasiast/refactor/gamestate-t-lower-camel-case
Change GameState_t members to lowerCamelCase
2025-03-21 23:32:02 +02:00
Gymnasiast
4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
MoorDev
96e22f0170 Fix #18169: Missing TTF support on Android 2025-03-20 18:52:57 +00:00
Gymnasiast
835f45523d Create widget type for horizontal separator 2025-03-17 22:43:09 +01:00
Aaron van Geffen
2ce206ed03 Move item temperature thresholds to climate objects 2025-03-07 18:57:00 +01:00
Aaron van Geffen
69d7488b8b Drop climate variable from in-game console 2025-02-01 17:30:20 +01:00
Aaron van Geffen
5dda84c891 Implement scaffolding for climate objects 2025-02-01 16:52:39 +01:00
Michael Steenbeek
05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +01:00
Gymnasiast
114e8da200 Update RideMode to current code style 2025-03-06 23:01:47 +01:00
Michael Steenbeek
8266447904 Split LOADSAVETYPE_* into LoadSaveAction and LoadSaveType 2025-03-06 21:06:39 +00:00
Michael Steenbeek
06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Gymnasiast
09da9779a5 Change Tool members to new codestyle 2025-03-01 20:12:12 +01:00
Gymnasiast
cf706ed5f6 Change GuestListFilterType members to new codestyle 2025-03-01 20:12:12 +01:00
Gymnasiast
9982f74cb7 Change CloseWindowModifier members to new codestyle 2025-03-01 20:12:12 +01:00
Gymnasiast
17140192de Change VisibilityCache members to new codestyle 2025-03-01 20:12:12 +01:00
Gymnasiast
a45625fc3e Change PromptMode members to new codestyle 2025-03-01 20:12:11 +01:00
Gymnasiast
9cf02f3635 Refactor MODAL_RESULT_* to enum 2025-03-01 20:12:11 +01:00
Michael Steenbeek
078ba79cb8 Introduce WF_NO_TITLE_BAR and apply to windows 2025-02-26 21:09:54 +01:00
Michael Steenbeek
e0f9a33923 Rename kCloseButtonWidth to kCloseButtonSize 2025-02-26 21:05:57 +01:00
Michael Steenbeek
87bb2f10dd Introduce WindowBase::canBeResized 2025-02-26 21:05:57 +01:00
73
a976a43708 Rename network.h to Network.h (#23882) 2025-02-24 10:43:06 +01:00