1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[draw] unicode_val_T in draw_box for UTF8

This commit is contained in:
Witold Filipczyk 2022-10-16 15:58:06 +02:00
parent 7135d6db08
commit 828d9e75cf
2 changed files with 13 additions and 0 deletions

View File

@ -357,10 +357,17 @@ draw_char(struct terminal *term, int x, int y,
set_screen_dirty(term->screen, y, y);
}
#ifdef CONFIG_UTF8
void
draw_box(struct terminal *term, struct el_box *box,
unicode_val_T data, int attr,
struct color_pair *color)
#else
void
draw_box(struct terminal *term, struct el_box *box,
unsigned char data, int attr,
struct color_pair *color)
#endif /* CONFIG_UTF8 */
{
struct screen_char *line, *pos, *end;
int width, height;

View File

@ -270,9 +270,15 @@ void draw_char(struct terminal *term, int x, int y,
#endif /* CONFIG_UTF8 */
/** Draws area defined by @a box using the same colors and attributes. */
#ifdef CONFIG_UTF8
void draw_box(struct terminal *term, struct el_box *box,
unicode_val_T data, int attr,
struct color_pair *color);
#else
void draw_box(struct terminal *term, struct el_box *box,
unsigned char data, int attr,
struct color_pair *color);
#endif
/** Draws a shadow of @a width and @a height with color @a color
* around @a box. */