Content-Length: 251300 | pFad | http://github.com/adafruit/circuitpython/commit/376e3ba1da34d65682ca78e52193d18102d1749d

61 Merge pull request #10210 from FoamyGuy/allow_Nx1_terminal_9.2.x · adafruit/circuitpython@376e3ba · GitHub
Skip to content

Commit 376e3ba

Browse files
authored
Merge pull request #10210 from FoamyGuy/allow_Nx1_terminal_9.2.x
fix for Nx1 sized Terminal
2 parents fc0c9ea + ff5e5d8 commit 376e3ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared-bindings/terminalio/Terminal.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ static mp_obj_t terminalio_terminal_make_new(const mp_obj_type_t *type, size_t n
8888

8989
fontio_builtinfont_t *font = mp_arg_validate_type(args[ARG_font].u_obj, &fontio_builtinfont_type, MP_QSTR_font);
9090

91-
mp_arg_validate_int_min(scroll_area->width_in_tiles, 2, MP_QSTR_scroll_area_width);
92-
mp_arg_validate_int_min(scroll_area->height_in_tiles, 2, MP_QSTR_scroll_area_height);
91+
mp_arg_validate_int_min(scroll_area->width_in_tiles * scroll_area->height_in_tiles, 2, MP_QSTR_scroll_area_area);
9392

9493
terminalio_terminal_obj_t *self = mp_obj_malloc(terminalio_terminal_obj_t, &terminalio_terminal_type);
9594

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/376e3ba1da34d65682ca78e52193d18102d1749d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy