yaft: remove unnecessary cfb struct member

This commit is contained in:
Stefan Seyfried
2018-01-19 20:06:42 +01:00
committed by Thilo Graf
parent 5598cd50aa
commit 2551dfd994
2 changed files with 1 additions and 3 deletions

View File

@@ -155,7 +155,6 @@ struct sixel_canvas_t {
}; };
#endif #endif
class CFrameBuffer;
struct terminal_t { struct terminal_t {
int fd; /* master of pseudo terminal */ int fd; /* master of pseudo terminal */
int width, height; /* terminal size (pixel) */ int width, height; /* terminal size (pixel) */
@@ -179,7 +178,6 @@ struct terminal_t {
struct glyph_t drcs[DRCS_CHARS]; /* DRCS chars */ struct glyph_t drcs[DRCS_CHARS]; /* DRCS chars */
struct sixel_canvas_t sixel; struct sixel_canvas_t sixel;
#endif #endif
CFrameBuffer *cfb;
std::queue<std::string> txt; /* contains "sanitized" (without control chars) output text */ std::queue<std::string> txt; /* contains "sanitized" (without control chars) output text */
int lines_available; /* lines available in txt */ int lines_available; /* lines available in txt */
bool nlseen; bool nlseen;

View File

@@ -129,7 +129,7 @@ int YaFT::run(void)
/* global */ /* global */
extern volatile sig_atomic_t need_redraw; extern volatile sig_atomic_t need_redraw;
extern volatile sig_atomic_t child_alive; extern volatile sig_atomic_t child_alive;
term.cfb = fb.info.cfb = CFrameBuffer::getInstance(); fb.info.cfb = CFrameBuffer::getInstance();
term.txt.push(""); term.txt.push("");
term.lines_available = 0; term.lines_available = 0;
term.nlseen = false; term.nlseen = false;