mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Use unicode_val_T instead of uint16_t for unicode data.
This commit is contained in:
parent
b0e2840f0d
commit
20331ffd74
@ -104,7 +104,7 @@ draw_char_color(struct terminal *term, int x, int y, struct color_pair *color)
|
||||
|
||||
void
|
||||
#ifdef CONFIG_UTF_8
|
||||
draw_char_data(struct terminal *term, int x, int y, uint16_t data)
|
||||
draw_char_data(struct terminal *term, int x, int y, unicode_val_T data)
|
||||
#else
|
||||
draw_char_data(struct terminal *term, int x, int y, unsigned char data)
|
||||
#endif /* CONFIG_UTF_8 */
|
||||
@ -226,7 +226,7 @@ draw_border(struct terminal *term, struct box *box,
|
||||
#ifdef CONFIG_UTF_8
|
||||
void
|
||||
draw_char(struct terminal *term, int x, int y,
|
||||
uint16_t data, enum screen_char_attr attr,
|
||||
unicode_val_T data, enum screen_char_attr attr,
|
||||
struct color_pair *color)
|
||||
#else
|
||||
void
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef EL__TERMINAL_DRAW_H
|
||||
#define EL__TERMINAL_DRAW_H
|
||||
|
||||
#include "intl/charsets.h" /* unicode_val_T */
|
||||
|
||||
struct color_pair;
|
||||
struct box;
|
||||
struct terminal;
|
||||
@ -20,7 +22,7 @@ enum screen_char_attr {
|
||||
struct screen_char {
|
||||
/* Contains either character value or frame data. */
|
||||
#ifdef CONFIG_UTF_8
|
||||
uint16_t data;
|
||||
unicode_val_T data;
|
||||
#else
|
||||
unsigned char data;
|
||||
#endif /* CONFIG_UTF_8 */
|
||||
@ -207,7 +209,7 @@ void draw_char_color(struct terminal *term, int x, int y,
|
||||
|
||||
/* Sets the data of a screen position. */
|
||||
#ifdef CONFIG_UTF_8
|
||||
void draw_char_data(struct terminal *term, int x, int y, uint16_t data);
|
||||
void draw_char_data(struct terminal *term, int x, int y, unicode_val_T data);
|
||||
#else
|
||||
void draw_char_data(struct terminal *term, int x, int y, unsigned char data);
|
||||
#endif /* CONFIG_UTF_8 */
|
||||
@ -223,7 +225,7 @@ void draw_border_cross(struct terminal *, int x, int y,
|
||||
/* Draws a char. */
|
||||
#ifdef CONFIG_UTF_8
|
||||
void draw_char(struct terminal *term, int x, int y,
|
||||
uint16_t data, enum screen_char_attr attr,
|
||||
unicode_val_T data, enum screen_char_attr attr,
|
||||
struct color_pair *color);
|
||||
#else
|
||||
void draw_char(struct terminal *term, int x, int y,
|
||||
|
Loading…
Reference in New Issue
Block a user