yaft: disable unused dcs functions

This commit is contained in:
Stefan Seyfried
2018-01-03 21:06:41 +01:00
committed by Thilo Graf
parent 9f85296597
commit 3d853ee5c9
4 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
/* See LICENSE for licence details. */
/* function for dcs sequence */
#error must no longer be included
enum {
RGBMAX = 255,
HUEMAX = 360,

View File

@@ -413,6 +413,7 @@ void fb_die(struct framebuffer_t *fb)
#endif
}
#if 0
static inline void draw_sixel(struct framebuffer_t *fb, int line, int col, uint8_t *pixmap)
{
int h, w, src_offset, dst_offset;
@@ -430,6 +431,7 @@ static inline void draw_sixel(struct framebuffer_t *fb, int line, int col, uint8
}
}
}
#endif
static inline void draw_line(struct framebuffer_t *fb, struct terminal_t *term, int line)
{
@@ -445,11 +447,13 @@ static inline void draw_line(struct framebuffer_t *fb, struct terminal_t *term,
/* target cell */
cellp = &term->cells[line][col];
#if 0
/* draw sixel pixmap */
if (cellp->has_pixmap) {
draw_sixel(fb, line, col, cellp->pixmap);
continue;
}
#endif
/* copy current color_pair (maybe changed) */
color_pair = cellp->color_pair;

View File

@@ -8,7 +8,9 @@ void erase_cell(struct terminal_t *term, int y, int x)
cellp->color_pair = term->color_pair; /* bce */
cellp->attribute = ATTR_RESET;
cellp->width = HALF;
#if 0
cellp->has_pixmap = false;
#endif
term->line_dirty[y] = true;
}
@@ -54,7 +56,9 @@ int set_cell(struct terminal_t *term, int y, int x, const struct glyph_t *glyphp
cell.attribute = term->attribute;
cell.width = (glyph_width)glyphp->width;
#if 0
cell.has_pixmap = false;
#endif
cellp = &term->cells[y][x];
*cellp = cell;

View File

@@ -114,10 +114,12 @@ struct cell_t {
struct color_pair_t color_pair; /* color (fg, bg) */
/*enum char_attr*/ int attribute; /* bold, underscore, etc... */
enum glyph_width width; /* wide char flag: WIDE, NEXT_TO_WIDE, HALF */
#if 0
bool has_pixmap; /* has sixel pixmap data or not */
/* sixel pixmap data:
must be statically allocated for copy_cell() */
uint8_t pixmap[BYTES_PER_PIXEL * CELL_WIDTH * CELL_HEIGHT];
#endif
};
struct esc_t {