Skip to content

Commit 210489d

Browse files
committed
1.0.11
1 parent e54405c commit 210489d

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

RELEASES.md

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

3+
## 1.0.11
4+
5+
* Fixes issues in improved UTF-8 and UTF-16 decoder logic.
6+
37
## 1.0.10
48

5-
* Improved UTF-8 and UTF-16 decoder logic.
9+
* Improved UTF-8 and UTF-16 decoder
610

711
## 1.0.9
812

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.10",
3+
"version": "1.0.11",
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.10
2+
version=1.0.11
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static mr_charcode mr_decode_utf8(uint8_t **strp)
6767
length = 3;
6868
codepoint = lead & 0x0f;
6969
}
70-
else if ((lead >> 4) == 0x0e)
70+
else if ((lead >> 3) == 0x1e)
7171
{
7272
length = 4;
7373
codepoint = lead & 0x07;
@@ -106,7 +106,7 @@ static mr_charcode mr_decode_utf16(uint8_t **strp)
106106
((lowSurrogate >> 10) != 0x37))
107107
return 0;
108108

109-
*strp += 2;
109+
*strp += 4;
110110

111111
return (highSurrogate & 0x3ff) << 10 |
112112
(lowSurrogate & 0x3ff);

0 commit comments

Comments
 (0)