1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00
Commit Graph

26857 Commits

Author SHA1 Message Date
Patric Stout
60fe3fc0df Fix: [CI] enable audio (alsa / jack / pulse) for generic Linux builds (#11051)
SDL needs to see the header files when compiling to enable those
drivers runtime. It doesn't actually link against them: it just
needs to see the headers.
2023-07-30 00:43:37 +02:00
Owen Rudge
64db854632 Change: [Actions] Use notarytool for notarization instead of gon 2023-07-30 00:43:37 +02:00
Patric Stout
ad29d242ed Change: release with (much) newer versions of dependencies for Generic Linux (#10484) 2023-07-30 00:43:37 +02:00
glx22
dbcf165b2f Doc: Changelog for 13.4 2023-07-29 22:11:03 +02:00
glx22
7cc3bc0e53 Doc: Bump release version. 2023-07-29 22:11:03 +02:00
glx22
80ed387c37 Update: Backport language changes 2023-07-29 22:11:03 +02:00
Charles Pigott
9e05fa31e2 Update: Backport language changes 2023-06-28 23:58:09 +01:00
31913d02b8 Fix: Setting tree lines drawn incorrectly for RTL languages. (#11070) 2023-06-28 23:58:09 +01:00
Jonathan G Rennison
5150f3bb66 Fix #11016: Defer deletion of client and server game socket handlers
This fixes various use after free scenarios in error handling paths
2023-06-28 23:58:09 +01:00
Jonathan G Rennison
a19826247e Fix: Error logging in game and admin server HandlePacket
Don't invent a packet type in the log message if we can't/don't
read a packet type at all.
Fix packet type not being logged when appropriate.
2023-06-28 23:58:09 +01:00
Finn Willard
6dc5c4fff5 Fix #10917: Pay loan interest before generating statistics (#11040) 2023-06-28 23:58:09 +01:00
1e1f1fada5 Fix #11043: Don't choose toolbar dropdown option if focus is lost. (#11044)
Since dropdown menus now get closed if they lose focus, 'instant close' dropdowns (i.e. the toolbar dropdowns) should no longer execute their action to avoid unintended actions.
2023-06-28 23:58:09 +01:00
5cd9c6d9a0 Fix #10987: Double-close of dropdown stopped land-info tool working as default. (#11000)
Clicking and releasing on the query toolbar icon is meant to select the land-info tool.

This did not work as during closing a window, OnFocusLost() is called, which then closes the window again. These two calls toggled the land-info tool one and off in the same action.

Resolve by not calling Window::Close in OnFocusLost() if the window is already closing.
2023-06-28 23:58:09 +01:00
glx22
d854bb82e5 Doc: Changelog for 13.3 13.3 2023-06-11 17:03:58 +02:00
glx22
5cc06f5dbe Doc: Bump release version. 2023-06-11 17:03:58 +02:00
glx22
69168078d8 Revert ee6e30e: pretending 13.2.1 was 13.2 didn't work
This reverts commit ee6e30ead9.
2023-06-11 17:03:58 +02:00
Owen Rudge
7cdb8c92e0 Change: [Actions] Upgrade import-codesign-certs dependency in macOS build workflow 2023-06-11 16:41:13 +02:00
Patric Stout
402baa63f2 Doc: Changelog for 13.2.1 (#10988) 13.2.1 2023-06-11 13:47:20 +02:00
Patric Stout
e80cb487e6 Doc: Bump release version. 2023-06-11 13:42:31 +02:00
Patric Stout
ee6e30ead9 Fix: make 13.2.1 act like 13.2 for networking 2023-06-11 13:42:31 +02:00
Patric Stout
4b7fcaca0f Fix 07add7a9: [Win32] use full monitor resolution for fullscreen (#10985)
On Windows in fullscreen you cannot reach the top with
the cursor for the halve of the height of your toolbar.

Additionally, on Win10 in fullscreen you can see the actual toolbar.
2023-06-11 13:42:31 +02:00
Charles Pigott
d4df692a70 Doc: Changelog for 13.2 (#10981) 13.2 2023-06-10 15:50:05 +02:00
Charles Pigott
9580aef49c Update: Backport language changes 2023-06-10 15:49:43 +02:00
4aded39db6 Fix: Don't restore backed up vehicle name if it's no longer unique. (#10979) 2023-06-10 15:49:43 +02:00
merni-ns
ed9895dbb5 Fix #10975: Clear a non-head engine's name (#10976) 2023-06-10 15:49:43 +02:00
ab0924f14e Fix dec7ff6b0c: Dropdowns couldn't be closed by pressing the parent button. (#10954)
Since dropdowns self-close, the detection of re-clicking a dropdown
button no longer worked, as the dropdown is already closed.

Instead set (and then test) a flag on the parent widget to indicate that
the dropdown closed. This method avoids looping windows on every click.
2023-06-10 15:49:43 +02:00
Patric Stout
dea0f7e894 Fix: when syncing width of GUI items, take padding into account (#10915) 2023-06-10 15:49:43 +02:00
4949bd8cd5 Fix dec7ff6b0c: Dropdowns would close if their tooltip appeared. (#10939)
Solution is to not focus any tooltips, so that the dropdown doesn't lose focus. Tooltips don't accept any input so this does not change their behaviour.
2023-06-10 15:49:43 +02:00
Bernard Teo
374a51c766 Doc: Fix spelling error in ScriptTileList::RemoveRectangle (#10937) 2023-06-10 15:49:43 +02:00
Jonathan G Rennison
57946c8507 Fix #10831: Level crossing parts left barred after crossing tile removal (#10874) 2023-06-10 15:49:43 +02:00
Patric Stout
0f81c20ee2 Update: Backport language changes 2023-06-04 22:47:05 +02:00
Patric Stout
46d30aa970 Fix: [Win32] position window in center of workspace of primary display (#10942) 2023-06-04 22:47:05 +02:00
Patric Stout
4a7d93b2a6 Fix: crash with tooltip on low resolution screens (#10933) 2023-06-04 22:47:05 +02:00
Patric Stout
2a0e2f1658 Fix: crash when window can't be placed on low resolution screens. (#10932)
Co-authored-by: Jonathan G Rennison <j.g.rennison@gmail.com>
2023-06-04 22:47:05 +02:00
Patric Stout
83a857afb6 Fix: crash when not even a single row fits for dropdowns on low resolution screens (#10934) 2023-06-04 22:47:05 +02:00
b5a38cb14d Fix #10502: Refit engine before attaching free wagons. (#10926)
Caused by incorrect order of operations when buying a train engine with refit and attaching free wagons.
2023-06-04 22:47:05 +02:00
Patric Stout
00bcda7e33 Fix: disable hardware acceleration when GPU driver crashed the game last attempt (#10928) 2023-06-04 22:47:05 +02:00
Patric Stout
6f7d44c3f4 Add: [Linux] change default scroll mode to non-mouse-lock (#10920)
Wayland doesn't support mouse warping, X11 only for native
systems (so not for remote desktop, WSLg, etc), and emscripten
neither without complications. All these cannot offer a
mouse-lock.
2023-06-04 22:47:05 +02:00
Patric Stout
045e81809a Codechange: remove queue_wrap / last_position from mouse movement
No backend uses it anymore, so also no longer any need to support
it.
2023-06-04 22:47:05 +02:00
Patric Stout
b8d66fc783 Codechange: simplify UpdateCursorPositionRelative
The function is only called with fix_at=true, so don't support
the other cases.
2023-06-04 22:47:05 +02:00
Patric Stout
2ce9f640ef Fix: [SDL] unify the way X11 and Wayland handle mouse events
Basically, we drop RelativeMode completely, and use the same trick
as used by the Windows driver: read all motion events till the last
one, and use that as value.
2023-06-04 22:47:05 +02:00
220b08b868 Change: Include font style in font name for Freetype. 2023-06-04 22:47:05 +02:00
3ae1a80576 Codechange: Return fontcache font name as std::string. 2023-06-04 22:47:05 +02:00
glx22
532007737e Update: Backport language changes 2023-06-04 02:13:42 +02:00
Patric Stout
57a6233754 Fix: Wayland crash on startup due to Pango also using FontConfig (#10916)
Basically, we haven't been a good neighbour. Turns out you shouldn't
actually call FcFini when you are done, as some library might still
want to use FontConfig. And they use a shared instance for their
administration.

The idea is that you call FcInit once, and use FcConfigReference
after that to get an instance, you can release. This entry is
ref-counted, and things happen automatically based on that.

At least, I think.
2023-06-04 02:13:42 +02:00
53709f0bdc Codechange: Close dropdowns by class instead of id. 2023-06-04 02:13:42 +02:00
81e5cd23e0 Codechange: Use window parent association for dropdowns.
This replaces the separate window class and number properties, and
allows the window system to close dropdowns automatically.
2023-06-04 02:13:42 +02:00
2d8d9c49c4 Fix: Make dropdowns self-close when losing focus. 2023-06-04 02:13:42 +02:00
c3815359f1 Fix: Land info window maximum width was not scaled. (#10894) 2023-06-04 02:13:42 +02:00
Loïc Guilloux
89259af2e4 Fix: Check max member count in squirrel classes (#10883)
Manual cherry-pick from 23a0620658
2023-06-04 02:13:42 +02:00