Skip to content

Commit 5b12678

Browse files
committed
Merge branch 'release/2.x' into dev
2 parents 0505be6 + b26c3f9 commit 5b12678

File tree

7 files changed

+48
-10
lines changed

7 files changed

+48
-10
lines changed

3rdparty/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189

190190
## OpenSSL
191191
- [![Upstream](https://img.shields.io/github/v/tag/openssl/openssl?label=Upstream)](https://github.com/openssl/openssl)
192-
- Version: 3.0.17
192+
- Version: 3.0.18
193193
- License: Apache-2.0
194194

195195
## png
@@ -211,7 +211,7 @@
211211

212212
## rapidjson
213213
- [![Upstream](https://img.shields.io/github/v/tag/Tencent/rapidjson?label=Upstream)](https://github.com/Tencent/rapidjson)
214-
- Version: 1.1.0-815e6e7 (until Sep 24, 2024)
214+
- Version: 1.1.0-24b5e7a (until Feb 5, 2025)
215215
- License: MIT
216216

217217
## recast

3rdparty/rapidjson/encodings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ struct UTF8 {
177177

178178
template <typename InputStream, typename OutputStream>
179179
static bool Validate(InputStream& is, OutputStream& os) {
180-
#define RAPIDJSON_COPY() os.Put(c = is.Take())
180+
#define RAPIDJSON_COPY() if (c != '\0') os.Put(c = is.Take())
181181
#define RAPIDJSON_TRANS(mask) result &= ((GetRange(static_cast<unsigned char>(c)) & mask) != 0)
182182
#define RAPIDJSON_TAIL() RAPIDJSON_COPY(); RAPIDJSON_TRANS(0x70)
183-
Ch c;
183+
Ch c = static_cast<Ch>(-1);
184184
RAPIDJSON_COPY();
185185
if (!(c & 0x80))
186186
return true;

3rdparty/rapidjson/internal/strtod.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ inline bool StrtodDiyFp(const Ch* decimals, int dLen, int dExp, double* result)
134134
int i = 0; // 2^64 - 1 = 18446744073709551615, 1844674407370955161 = 0x1999999999999999
135135
for (; i < dLen; i++) {
136136
if (significand > RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) ||
137-
(significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] > Ch('5')))
137+
(significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] >= Ch('5')))
138138
break;
139139
significand = significand * 10u + static_cast<unsigned>(decimals[i] - Ch('0'));
140140
}

3rdparty/rapidjson/pointer.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ RAPIDJSON_DIAG_PUSH
2828
RAPIDJSON_DIAG_OFF(4512) // assignment operator could not be generated
2929
#endif
3030

31+
#if defined(RAPIDJSON_CPLUSPLUS) && RAPIDJSON_CPLUSPLUS >= 201703L
32+
#define RAPIDJSON_IF_CONSTEXPR if constexpr
33+
#else
34+
#define RAPIDJSON_IF_CONSTEXPR if
35+
#endif
36+
3137
RAPIDJSON_NAMESPACE_BEGIN
3238

3339
static const SizeType kPointerInvalidIndex = ~SizeType(0); //!< Represents an invalid index in GenericPointer::Token
@@ -291,7 +297,7 @@ class GenericPointer {
291297
SizeType length = static_cast<SizeType>(end - buffer);
292298
buffer[length] = '\0';
293299

294-
if (sizeof(Ch) == 1) {
300+
RAPIDJSON_IF_CONSTEXPR (sizeof(Ch) == 1) {
295301
Token token = { reinterpret_cast<Ch*>(buffer), length, index };
296302
return Append(token, allocator);
297303
}

3rdparty/rapidjson/schema.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,8 +1645,7 @@ class Schema {
16451645
double qRounded = std::floor(q + 0.5);
16461646
double scaledEpsilon = (q + qRounded) * std::numeric_limits<double>::epsilon();
16471647
double difference = std::abs(qRounded - q);
1648-
bool isMultiple = (difference <= scaledEpsilon)
1649-
|| (difference < std::numeric_limits<double>::min());
1648+
bool isMultiple = difference <= scaledEpsilon || difference < (std::numeric_limits<double>::min)();
16501649
if (!isMultiple) {
16511650
context.error_handler.NotMultipleOf(d, multipleOf_);
16521651
RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorMultipleOf);
@@ -1762,7 +1761,7 @@ struct TokenHelper {
17621761
template <typename Stack>
17631762
struct TokenHelper<Stack, char> {
17641763
RAPIDJSON_FORCEINLINE static void AppendIndexToken(Stack& documentStack, SizeType index) {
1765-
if (sizeof(SizeType) == 4) {
1764+
RAPIDJSON_IF_CONSTEXPR (sizeof(SizeType) == 4) {
17661765
char *buffer = documentStack.template Push<char>(1 + 10); // '/' + uint
17671766
*buffer++ = '/';
17681767
const char* end = internal::u32toa(index, buffer);

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# axmol-2.9.1 Nov.2 2025
2+
3+
## Significant changes relative to 2.9.0:
4+
5+
- Improve SDF text outline rendering by @halx99 in [#2843](https://github.com/axmolengine/axmol/pull/2843)
6+
7+
## Bug fixes
8+
9+
- Fix SDF text rendering issue when both outline and shadow are enabled by @halx99, see issue: [#2844](https://github.com/axmolengine/axmol/issues/2844)
10+
- Fix memory leak in extension::GUI ScrollView by @j-jorge in [#2821](https://github.com/axmolengine/axmol/pull/2821)
11+
- Fix FairyGUI Ellipse/Circle "Line Size" issue by @aismann in [#2825](https://github.com/axmolengine/axmol/pull/2825)
12+
- Fix: `ui::Text` `Overflow::SHRINK` does not restore the original font size when text is shortened by @tkzcfc in [#2831](https://github.com/axmolengine/axmol/pull/2831)
13+
- Fix: `FastTMXLayer::reset` draw counts when layer becomes empty by @lucycycy in [#2839](https://github.com/axmolengine/axmol/pull/2839)
14+
15+
## Improvements
16+
17+
- Improve AutoPolygon::findFirstNoneTransparentPixel() by @aismann in [#2810](https://github.com/axmolengine/axmol/pull/2810)
18+
- Add new test scroll view v2 by @NgVThangBz in [#2820](https://github.com/axmolengine/axmol/pull/2820)
19+
- Add PVRv3 ASTC support and improve PVR format detection by @lucycycy in [#2832](https://github.com/axmolengine/axmol/pull/2832)
20+
- Sync pixel format enums in Constants.lua by @halx99
21+
- Improve distance field outline shader by @halx99
22+
23+
## SDK & Tools updates
24+
25+
- gradle: 9.1.0 => 9.2.0
26+
- webview2: 1.0.3485.44 => 1.0.3537.50
27+
28+
## 3rdparty updates
29+
30+
- oboe: 1.9.3 => 1.10.0
31+
- openssl: 3.0.17 => 3.0.18
32+
- rapidjson: 1.1.0-815e6e7 => 1.1.0-24b5e7a
33+
134
# axmol-2.9.0 Oct.5 2025
235

336
## Significant changes relative to 2.8.x:

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"versions": {
3-
"1kdist": "v107",
3+
"1kdist": "v108",
44
"oboe": "1.10.0",
55
"kcp": "v1.7-f4f3a89",
66
"opus": "v1.5.2",

0 commit comments

Comments
 (0)