Peter Nelson
|
0dc40877fd
|
Codechange: Initialise/reset font cache with FontSizes bitset. (#14448)
Instead of choosing either "Normal/Small/Large" or "Monospace", use an EnumBitSet to allow any combination.
|
2025-07-18 18:23:28 +01:00 |
|
Peter Nelson
|
b2d69ae606
|
Codechange: Use AutoRelease to simplify cleanup after FontConfig calls. (#14354)
|
2025-06-11 21:24:31 +01:00 |
|
Peter Nelson
|
c702e05517
|
Codechange: Replace C-casts for FontConfig with helper functions. (#14349)
Add `ToFcString()` and `FromFcString()` to remove C-style casts and make reinterpret_casts safer and clearer.
|
2025-06-10 17:11:22 +01:00 |
|
Rubidium
|
f2b48bad79
|
Codechange: remove last (hidden) users of memset
|
2025-05-11 06:07:01 +02:00 |
|
Rubidium
|
a48a5f0cc6
|
Codechange: replace memcpy with std::copy_n
|
2025-05-10 16:50:58 +02:00 |
|
Rubidium
|
f8aceb6c37
|
Codechange: use value initialisation over memset
|
2025-05-09 17:20:41 +02:00 |
|
Rubidium
|
8f1e94c546
|
Codechange: use C++ initialisation over MemSetT
|
2025-05-06 20:03:35 +02:00 |
|
frosch
|
b20b6da937
|
Codechange: The compiler ensures static variables are initialised only once, no need to track that manually.
|
2025-05-06 18:29:41 +02:00 |
|
frosch
|
75a775e59d
|
Codechange: Make GetCurrentLocale return a std::string instead of a reference to a static buffer.
For win32 this is even a fix, because the static buffer was only updated once. Later calls discarded the determined locale.
|
2025-05-06 18:29:41 +02:00 |
|
frosch
|
61cec33be2
|
Codechange: Add 'const' to static variables, which are only initialised once.
|
2025-05-06 18:29:41 +02:00 |
|
Rubidium
|
6189bbc45a
|
Codechange: return std::string_view for convert_from_fs
|
2025-05-04 15:32:52 +02:00 |
|
Rubidium
|
afc1e76575
|
Codefix: StartNewThread uses char* after returning
|
2025-05-04 14:05:15 +02:00 |
|
Rubidium
|
5e3c7c4146
|
Codechange: char* -> char *
|
2025-05-04 10:43:56 +02:00 |
|
frosch
|
8571af9833
|
Codechange: Turn ZoomLevel into enum class.
|
2025-05-03 23:21:09 +02:00 |
|
Rubidium
|
26a4da9b01
|
Codechange: replace last strncmp uses
|
2025-05-03 21:51:01 +02:00 |
|
frosch
|
bb767608de
|
Codechange: Pass SpriteType as direct parameter to SpriteEncoder::Encoder.
|
2025-05-03 18:43:20 +02:00 |
|
Rubidium
|
d037dbb42a
|
Codechange: use std::string_view for locales
|
2025-05-03 15:58:14 +02:00 |
|
Rubidium
|
c420ba349d
|
Codechange: use std::string_view over char*
|
2025-05-02 23:12:43 +02:00 |
|
Rubidium
|
fbe80f31fe
|
Codechange: replace char* in GetOptData with std::string_view
|
2025-04-30 23:49:06 +02:00 |
|
frosch
|
9cf36dac39
|
Codechange: Use data() instead of c_str(), if no NUL termination is needed.
|
2025-04-30 19:33:56 +02:00 |
|
Rubidium
|
708e6a512d
|
Codechange: replace char* with C++ style strings
|
2025-04-30 12:05:04 +02:00 |
|
Rubidium
|
f4ad614285
|
Codechange: use std::string_view for FS2OTTD and OTTD2FS
|
2025-04-29 22:33:32 +02:00 |
|
Rubidium
|
ef71ce0a9d
|
Codechange: return std::string_view for Textbuf::GetText()
|
2025-04-29 22:15:49 +02:00 |
|
frosch
|
fda93b6f35
|
Codechange: Add format_append as short-hand to format_to + back_inserter.
|
2025-04-29 20:26:23 +02:00 |
|
Rubidium
|
af25eecc15
|
Codechange: use const for std::string_view where appropriate
|
2025-04-29 10:15:18 +02:00 |
|
Rubidium
|
360670626b
|
Codechange: replace char* with std::string_view
|
2025-04-28 21:31:12 +02:00 |
|
Rubidium
|
781187b8a6
|
Codechange: replace C-style strings with std::string_view related to strings functions
|
2025-04-27 17:57:42 +02:00 |
|
Rubidium
|
86039a5b69
|
Codechange: make SetDebugString use C++-style strings and function types
|
2025-04-25 19:04:22 +02:00 |
|
frosch
|
461b73e21b
|
Codefix: stdafx.h and safeguards.h should be the first and last include in every source file, and not appear in any header file.
|
2025-04-20 22:06:18 +02:00 |
|
frosch
|
e89be12ebb
|
Codechange: Rename _library to _ft_library.
|
2025-04-11 22:11:28 +02:00 |
|
frosch
|
9229956f04
|
Codechange: Replace strcasestr with StrContainsIgnoreCase.
|
2025-04-09 17:19:11 +02:00 |
|
frosch
|
f640daee4c
|
Codechange: No need for Utf8Consume and Utf8Encode, if only ASCII characters are checked.
|
2025-04-03 18:43:41 +02:00 |
|
frosch
|
83401ad5e2
|
Codechange: Use Utf8View::iterator in StringIterator.
|
2025-04-03 18:43:41 +02:00 |
|
frosch
|
25005cff16
|
Codefix: std::string_view::data() is not necessarily null terminated. (#13891)
|
2025-03-25 20:32:19 +01:00 |
|
Rubidium
|
2000cea235
|
Codechange: initialise instance members
|
2025-03-09 20:41:03 +01:00 |
|
Rubidium
|
02f040b22a
|
Codechange: remove unused alloc_func.hpp includes
|
2025-02-24 20:00:19 +01:00 |
|
Jonathan G Rennison
|
d06b371254
|
Cleanup: Fix various spelling errors
|
2025-02-12 22:44:51 +01:00 |
|
Jonathan G Rennison
|
23dc393822
|
Codechange: Compile fmt internals in a separate translation unit (#13527)
Instead of defining FMT_HEADER_ONLY to include fmt internals
in the headers included by all fmt-using translation units.
|
2025-02-11 20:11:50 +01:00 |
|
Patric Stout
|
86841ba1f0
|
Codechange: no longer add "src" to the include-path (#13511)
|
2025-02-09 19:43:15 +00:00 |
|
Peter Nelson
|
ba20ea5d18
|
Codechange: Use EnumBitSet for SpriteComponent. (#13509)
|
2025-02-09 18:37:01 +00:00 |
|
Peter Nelson
|
afc0745aa2
|
Codechange: Specify underlying type for all enums excluding those exposed to scripts. (#13383)
|
2025-01-28 22:17:34 +00:00 |
|
Loïc Guilloux
|
ef826a048a
|
Codechange: [WIN32] Use language isocode for fallback font detection (#13310)
|
2025-01-21 15:57:09 +01:00 |
|
Loïc Guilloux
|
4670a62342
|
Fix: [Win32] Font detection didn't work for locales not supporting code pages (#13306)
|
2025-01-12 17:23:41 +01:00 |
|
Peter Nelson
|
59680867c3
|
Codechange: Use structured bindings when iterating font_mapping.
|
2024-12-20 19:05:08 +00:00 |
|
Peter Nelson
|
c78e309b16
|
Codefix: Use snake_case instead of camelCase in layouters.
|
2024-12-20 19:05:08 +00:00 |
|
Valeri
|
5d8e98207d
|
Codechange: Use lowercase name for winnls.h (#13170)
Fixes cross-compilation under MXE.
|
2024-12-13 19:55:53 +01:00 |
|
Peter Nelson
|
fe0afef36f
|
Codechange: Use unique_ptr instead of raw pointer for string layouts. (#13128)
|
2024-11-27 23:38:57 +00:00 |
|
Peter Nelson
|
23e252ad40
|
Codechange: Replace FontMap's std::map with std::vector. (#13126)
|
2024-11-27 12:36:56 +00:00 |
|
Peter Nelson
|
876d53282e
|
Codechange: Use std::ranges::count(_if).
|
2024-11-24 10:36:03 +00:00 |
|
Peter Nelson
|
e98407973f
|
Fix #12993: Replace known-bugs text with markdown version.
This allows a little bit better formatting/display in game.
(No attempt to check if these are still valid known-bugs...)
|
2024-10-22 00:34:16 +01:00 |
|