mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[draw] enum border_char -> border_char_T
This commit is contained in:
parent
ee6e9caa6a
commit
e57bae65d3
@ -393,7 +393,7 @@ display_listbox_item(struct listbox_item *item, void *data_, int *offset)
|
||||
}
|
||||
|
||||
if (depth) {
|
||||
enum border_char str[5] =
|
||||
border_char_T str[5] =
|
||||
{ 32, BORDER_SRTEE, BORDER_SHLINE, BORDER_SHLINE, 32 };
|
||||
int i;
|
||||
|
||||
|
@ -980,7 +980,7 @@ static inline void
|
||||
draw_frame_point(struct table *table, signed char *frame[2], int x, int y,
|
||||
int col, int row, struct html_context *html_context)
|
||||
{
|
||||
static enum border_char const border_chars[81] = {
|
||||
static border_char_T const border_chars[81] = {
|
||||
BORDER_NONE, BORDER_SVLINE, BORDER_DVLINE,
|
||||
BORDER_SHLINE, BORDER_SDLCORNER, BORDER_DSDLCORNER,
|
||||
BORDER_DHLINE, BORDER_SDDLCORNER, BORDER_DDLCORNER,
|
||||
|
@ -81,7 +81,7 @@ draw_border_cross(struct terminal *term, int x, int y,
|
||||
|
||||
void
|
||||
draw_border_char(struct terminal *term, int x, int y,
|
||||
enum border_char border, struct color_pair *color)
|
||||
border_char_T border, struct color_pair *color)
|
||||
{
|
||||
struct screen_char *screen_char = get_char(term, x, y);
|
||||
|
||||
@ -196,7 +196,7 @@ void
|
||||
draw_border(struct terminal *term, struct el_box *box,
|
||||
struct color_pair *color, int width)
|
||||
{
|
||||
static const enum border_char p1[] = {
|
||||
static const border_char_T p1[] = {
|
||||
BORDER_SULCORNER,
|
||||
BORDER_SURCORNER,
|
||||
BORDER_SDLCORNER,
|
||||
@ -204,7 +204,7 @@ draw_border(struct terminal *term, struct el_box *box,
|
||||
BORDER_SVLINE,
|
||||
BORDER_SHLINE,
|
||||
};
|
||||
static const enum border_char p2[] = {
|
||||
static const border_char_T p2[] = {
|
||||
BORDER_DULCORNER,
|
||||
BORDER_DURCORNER,
|
||||
BORDER_DDLCORNER,
|
||||
@ -212,7 +212,7 @@ draw_border(struct terminal *term, struct el_box *box,
|
||||
BORDER_DVLINE,
|
||||
BORDER_DHLINE,
|
||||
};
|
||||
const enum border_char *p = (width > 1) ? p2 : p1;
|
||||
const border_char_T *p = (width > 1) ? p2 : p1;
|
||||
struct el_box borderbox;
|
||||
|
||||
set_box(&borderbox, box->x - 1, box->y - 1,
|
||||
|
@ -224,6 +224,8 @@ enum border_char {
|
||||
BORDER_DSCROSS = BD_MIXED(VERTICAL_DOUBLE_AND_HORIZONTAL_SINGLE),
|
||||
};
|
||||
|
||||
typedef int border_char_T;
|
||||
|
||||
/* 0 -> 1 <- 2 v 3 ^ */
|
||||
enum border_cross_direction {
|
||||
BORDER_X_RIGHT = 0,
|
||||
@ -248,7 +250,7 @@ void draw_char_data(struct terminal *term, int x, int y, unsigned char data);
|
||||
|
||||
/** Sets the data to @a border and of a screen position. */
|
||||
void draw_border_char(struct terminal *term, int x, int y,
|
||||
enum border_char border, struct color_pair *color);
|
||||
border_char_T border, struct color_pair *color);
|
||||
|
||||
/** Sets the cross position of two borders. */
|
||||
void draw_border_cross(struct terminal *, int x, int y,
|
||||
|
Loading…
Reference in New Issue
Block a user