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:
parent
7135d6db08
commit
828d9e75cf
@ -357,10 +357,17 @@ draw_char(struct terminal *term, int x, int y,
|
|||||||
set_screen_dirty(term->screen, y, 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
|
void
|
||||||
draw_box(struct terminal *term, struct el_box *box,
|
draw_box(struct terminal *term, struct el_box *box,
|
||||||
unsigned char data, int attr,
|
unsigned char data, int attr,
|
||||||
struct color_pair *color)
|
struct color_pair *color)
|
||||||
|
#endif /* CONFIG_UTF8 */
|
||||||
{
|
{
|
||||||
struct screen_char *line, *pos, *end;
|
struct screen_char *line, *pos, *end;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
@ -270,9 +270,15 @@ void draw_char(struct terminal *term, int x, int y,
|
|||||||
#endif /* CONFIG_UTF8 */
|
#endif /* CONFIG_UTF8 */
|
||||||
|
|
||||||
/** Draws area defined by @a box using the same colors and attributes. */
|
/** 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,
|
void draw_box(struct terminal *term, struct el_box *box,
|
||||||
unsigned char data, int attr,
|
unsigned char data, int attr,
|
||||||
struct color_pair *color);
|
struct color_pair *color);
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Draws a shadow of @a width and @a height with color @a color
|
/** Draws a shadow of @a width and @a height with color @a color
|
||||||
* around @a box. */
|
* around @a box. */
|
||||||
|
Loading…
Reference in New Issue
Block a user