mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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
|
void
|
||||||
#ifdef CONFIG_UTF_8
|
#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
|
#else
|
||||||
draw_char_data(struct terminal *term, int x, int y, unsigned char data)
|
draw_char_data(struct terminal *term, int x, int y, unsigned char data)
|
||||||
#endif /* CONFIG_UTF_8 */
|
#endif /* CONFIG_UTF_8 */
|
||||||
@ -226,7 +226,7 @@ draw_border(struct terminal *term, struct box *box,
|
|||||||
#ifdef CONFIG_UTF_8
|
#ifdef CONFIG_UTF_8
|
||||||
void
|
void
|
||||||
draw_char(struct terminal *term, int x, int y,
|
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)
|
struct color_pair *color)
|
||||||
#else
|
#else
|
||||||
void
|
void
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef EL__TERMINAL_DRAW_H
|
#ifndef EL__TERMINAL_DRAW_H
|
||||||
#define EL__TERMINAL_DRAW_H
|
#define EL__TERMINAL_DRAW_H
|
||||||
|
|
||||||
|
#include "intl/charsets.h" /* unicode_val_T */
|
||||||
|
|
||||||
struct color_pair;
|
struct color_pair;
|
||||||
struct box;
|
struct box;
|
||||||
struct terminal;
|
struct terminal;
|
||||||
@ -20,7 +22,7 @@ enum screen_char_attr {
|
|||||||
struct screen_char {
|
struct screen_char {
|
||||||
/* Contains either character value or frame data. */
|
/* Contains either character value or frame data. */
|
||||||
#ifdef CONFIG_UTF_8
|
#ifdef CONFIG_UTF_8
|
||||||
uint16_t data;
|
unicode_val_T data;
|
||||||
#else
|
#else
|
||||||
unsigned char data;
|
unsigned char data;
|
||||||
#endif /* CONFIG_UTF_8 */
|
#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. */
|
/* Sets the data of a screen position. */
|
||||||
#ifdef CONFIG_UTF_8
|
#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
|
#else
|
||||||
void draw_char_data(struct terminal *term, int x, int y, unsigned char data);
|
void draw_char_data(struct terminal *term, int x, int y, unsigned char data);
|
||||||
#endif /* CONFIG_UTF_8 */
|
#endif /* CONFIG_UTF_8 */
|
||||||
@ -223,7 +225,7 @@ void draw_border_cross(struct terminal *, int x, int y,
|
|||||||
/* Draws a char. */
|
/* Draws a char. */
|
||||||
#ifdef CONFIG_UTF_8
|
#ifdef CONFIG_UTF_8
|
||||||
void draw_char(struct terminal *term, int x, int y,
|
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);
|
struct color_pair *color);
|
||||||
#else
|
#else
|
||||||
void draw_char(struct terminal *term, int x, int y,
|
void draw_char(struct terminal *term, int x, int y,
|
||||||
|
Loading…
Reference in New Issue
Block a user