Skip to content

Commit 548fded

Browse files
committed
1.0.6
1 parent f91febe commit 548fded

5 files changed

+8
-4
lines changed

RELEASES.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Releases
22

3+
## 1.0.6
4+
5+
* Fixed text buffer error.
6+
* Removed unused mr->buffer_pitch.
7+
38
## 1.0.5
49

510
* Fixed ST7565 buffer overflow.

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcu-renderer",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=mcu-renderer
2-
version=1.0.5
2+
version=1.0.6
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ void mr_draw_string_textbuffer(mr_t *mr,
10181018
int16_t buffer_next_width = pen.x + glyph_boundingbox_right;
10191019
buffer_width_increment = buffer_next_width - buffer_rectangle.width;
10201020

1021-
draw_buffer = (buffer_next_width > buffer_pitch);
1021+
draw_buffer = (buffer_next_width >= buffer_pitch);
10221022
}
10231023

10241024
if (draw_buffer)

src/mcu-renderer.h

-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ struct mr_t_
216216

217217
void *buffer;
218218
uint32_t buffer_size;
219-
uint32_t buffer_pitch;
220219

221220
mr_color_t stroke_color;
222221
mr_color_t fill_color;

0 commit comments

Comments
 (0)