Skip to content

Commit 31aa1b1

Browse files
committed
1.0.12
1 parent 210489d commit 31aa1b1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

RELEASES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Releases
22

3-
## 1.0.11
3+
## 1.0.12
44

5-
* Fixes issues in improved UTF-8 and UTF-16 decoder logic.
5+
* Fixes issues in UTF-8 and UTF-16 decoder logic.
66

77
## 1.0.10
88

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcu-renderer",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"keywords": "antialiased, color-displays, display-driver, embedded-systems, font, graphics-library, lcd-display, microcontrollers, monochrome-displays, oled-display, renderer, text, tft-display",
55
"description": "A C-language graphics library, focused on rendering non-flickering, anti-aliased text with low resource use on both monochrome and color LCD displays.",
66
"license": "MIT",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=mcu-renderer
2-
version=1.0.11
2+
version=1.0.12
33
author=Gissio
44
maintainer=Gissio
55
sentence=A low-resource graphics library, focused on rendering non-flickering, anti-aliased text on both monochrome and color LCD displays.

src/mcu-renderer.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ static mr_charcode mr_decode_utf16(uint8_t **strp)
108108

109109
*strp += 4;
110110

111-
return (highSurrogate & 0x3ff) << 10 |
112-
(lowSurrogate & 0x3ff);
111+
return (0x10000 +
112+
((highSurrogate & 0x3ff) << 10 |
113+
(lowSurrogate & 0x3ff)));
113114
}
114115
}
115116

0 commit comments

Comments
 (0)