From 54c9b4b533210b77be998f458ff96bdc54272f64 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 12 Jul 2023 16:20:50 +0200 Subject: big buffer/buffer_view rework A buffer is only the text and the corresponding operation. A buffer view holds information about scroll, dot and mark positions. One way to think about it is that a buffer is stateless whereas a buffer view is stateful. --- src/dged/display.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/dged/display.h') diff --git a/src/dged/display.h b/src/dged/display.h index 14dd246..2fc807b 100644 --- a/src/dged/display.h +++ b/src/dged/display.h @@ -205,8 +205,11 @@ void command_list_draw_text_copy(struct command_list *list, uint32_t col, * @param list Command list to record draw command in. * @param col Column to start text at. * @param row Row to start text at. - * @param c Byte to repeat. + * @param c Character to repeat. * @param nrepeat Number of times to repeat byte. */ void command_list_draw_repeated(struct command_list *list, uint32_t col, - uint32_t row, uint8_t c, uint32_t nrepeat); + uint32_t row, int32_t c, uint32_t nrepeat); + +void command_list_draw_command_list(struct command_list *list, + struct command_list *to_draw); -- cgit v1.2.3