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. */ /* See LICENSE for licence details. */
/* function for dcs sequence */ /* function for dcs sequence */
#error must no longer be included
enum { enum {
RGBMAX = 255, RGBMAX = 255,
HUEMAX = 360, HUEMAX = 360,

View File

@@ -413,6 +413,7 @@ void fb_die(struct framebuffer_t *fb)
#endif #endif
} }
#if 0
static inline void draw_sixel(struct framebuffer_t *fb, int line, int col, uint8_t *pixmap) static inline void draw_sixel(struct framebuffer_t *fb, int line, int col, uint8_t *pixmap)
{ {
int h, w, src_offset, dst_offset; 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) 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 */ /* target cell */
cellp = &term->cells[line][col]; cellp = &term->cells[line][col];
#if 0
/* draw sixel pixmap */ /* draw sixel pixmap */
if (cellp->has_pixmap) { if (cellp->has_pixmap) {
draw_sixel(fb, line, col, cellp->pixmap); draw_sixel(fb, line, col, cellp->pixmap);
continue; continue;
} }
#endif
/* copy current color_pair (maybe changed) */ /* copy current color_pair (maybe changed) */
color_pair = cellp->color_pair; 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->color_pair = term->color_pair; /* bce */
cellp->attribute = ATTR_RESET; cellp->attribute = ATTR_RESET;
cellp->width = HALF; cellp->width = HALF;
#if 0
cellp->has_pixmap = false; cellp->has_pixmap = false;
#endif
term->line_dirty[y] = true; 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.attribute = term->attribute;
cell.width = (glyph_width)glyphp->width; cell.width = (glyph_width)glyphp->width;
#if 0
cell.has_pixmap = false; cell.has_pixmap = false;
#endif
cellp = &term->cells[y][x]; cellp = &term->cells[y][x];
*cellp = cell; *cellp = cell;

View File

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