1
0
Fork 0
Commit Graph

26827 Commits (0f81c20ee20cbfdd51c1f2a2f99b63f8733176f0)
 

Author SHA1 Message Date
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
PeterN 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
Peter Nelson 220b08b868 Change: Include font style in font name for Freetype. 2023-06-04 22:47:05 +02:00
Peter Nelson 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
Peter Nelson 53709f0bdc Codechange: Close dropdowns by class instead of id. 2023-06-04 02:13:42 +02:00
Peter Nelson 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
Peter Nelson 2d8d9c49c4 Fix: Make dropdowns self-close when losing focus. 2023-06-04 02:13:42 +02:00
PeterN 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
PeterN 680eb6b516 Fix: Ask FontConfig for the face index when opening fonts. (#10878)
This allows selection of the correct face in truetype fonts containing
multiple faces.
2023-06-04 02:13:42 +02:00
Jonathan G Rennison a75a90b3af Fix: Rail waypoint selection window not closed
When rail toolbar or rail waypoint build windows closed
2023-06-04 02:13:42 +02:00
Loïc Guilloux 7969907116 Fix #10846: [Squirrel] Ensure sqvector size does not overflow (#10848) 2023-06-04 02:13:42 +02:00
Loïc Guilloux 4cc0c21182 Fix: disable "redundant move" warnings for GCC (#10803)
GCC warns about redundant std::move while clang warns when they are missing, so we silence the less harmful one
2023-06-04 02:13:42 +02:00
Michael Lutz df417168c6 Fix: [Win32] Text line breaking did not properly handle punctuation characters. (#10775) 2023-06-04 02:13:42 +02:00
Jonathan G Rennison b8eca7ddb1 Fix #10741: Rail platforms left partially reserved after train crash (#10751) 2023-06-04 02:13:42 +02:00
Patric Stout 0569331f6b Fix: crash in emscripten when saving games (#10758)
Don't allocate 128KB on stack, but rather on the heap.
2023-06-04 02:13:42 +02:00
Michael Lutz 439ecbc759 Fix: [Win32] Wrong multi-line text layout due to incorrect whitespace handling. 2023-06-04 02:13:42 +02:00
Michael Lutz 85d2f80817 Fix: Typo in variable name. 2023-06-04 02:13:42 +02:00
Rubidium e53caf8f01 Fix: FormatArrayAsHex returns gibberish instead of a hex array 2023-06-04 02:13:42 +02:00
Kuhnovic b70df6eeda Fix #8177: Ships with max speed overflow to near-zero speed (#10695) 2023-06-04 02:13:42 +02:00
Peter Nelson f895d7e43c Fix: Set TC_NO_SHADE only for shaded engine in purchase list.
Additionally use TC_FORCE to prevent additional colours in the shaded text.
2023-06-04 02:13:42 +02:00
Peter Nelson 28e845dbaf Fix: #10735: {POP_COLOUR} fails if string is drawn with extra flags. 2023-06-04 02:13:42 +02:00
Tyler Trahan df1ba20403 Fix #10289: Don't silently fail when setting timetable start dates (#10690) 2023-06-04 02:13:42 +02:00
Tyler Trahan 4883d386da Fix #8302: Improve "Maintenance intervals are in percents" helptext (#10686) 2023-06-04 02:13:42 +02:00
aeonofdiscord e16fcb286a Fix #10665: CheckEngines should ignore wagons when determining available vehicles at the start date. (#10673) 2023-06-04 02:13:42 +02:00
rubidium42 ff7e8c284a Fix: Update some network documentation to match the new command system (#10657) 2023-06-04 02:13:42 +02:00
Jonathan G Rennison 08a5637f98 Fix #10638: Incorrect water infra total when building canal over object
In the case where the object is on an unowned canal tile and
the new canal tile is owned
2023-06-04 02:13:42 +02:00
Tyler Trahan da20e0f6e6 Fix #10630: Don't allow shifting service date earlier than 0 (#10643) 2023-06-04 02:13:42 +02:00
Jonathan G Rennison 78512af02e Fix #10637: Incorrect water infra total when building multi-tile object
Wrong tile used in ownership checks
2023-06-04 02:13:42 +02:00
PeterN f4f35a1f5c Fix: Abort loading savegame if road vehicle is on invalid road type. (#10622)
This can happen if NewGRFs are missing so that engine or road type definitions are wrong.
2023-06-04 02:13:42 +02:00
Tyler Trahan 7f987c8d3a
Doc: 13.1 changelog (#10629) 2023-04-10 21:39:24 +02:00
Charles Pigott 090913c655 Update: Backport language changes 2023-04-10 19:02:21 +01:00
PeterN 15a32faece Fix 8361cf5a73: Missing bounds check for house specs. (#10625) 2023-04-10 19:02:21 +01:00
Alberth289346 353a6d4bfe Fix: Update top toolbar tooltips for added features. (#10616) 2023-04-10 19:02:21 +01:00
Peter Nelson 808dfc0672 Fix: Check ID for name is within bounds. 2023-04-10 19:02:21 +01:00
Peter Nelson 67bd6ab0ad Fix: Check station ID is within bounds when copying layouts. 2023-04-10 19:02:21 +01:00
Peter Nelson 4c756159fd Fix: Check sprite group mapping ID is within bounds of feature. 2023-04-10 19:02:21 +01:00
Peter Nelson d510e0baa8 Codechange: Check NewGRF feature is defined before processing any sprite group mapping.
Previously this was checked after loading ids, or repeatedly checked for
each item.
2023-04-10 19:02:21 +01:00
PeterN 4a1361b044 Fix: Clicking on editbox clear button didn't take account of padding. (#10583) 2023-04-10 19:02:21 +01:00