Shrink Cell to its prior size by using bitfields.

This commit is contained in:
John Hood
2016-11-14 23:34:16 -05:00
committed by john hood
parent e4aed30d30
commit 71fe4441ef
+3 -3
View File
@@ -89,9 +89,9 @@ namespace Terminal {
typedef std::string content_type; /* can be std::string, std::vector<uint8_t>, or __gnu_cxx::__vstring */
content_type contents;
Renditions renditions;
uint8_t width;
bool fallback; /* first character is combining character */
bool wrap;
unsigned int width : 2;
unsigned int fallback : 1; /* first character is combining character */
unsigned int wrap : 1;
public:
Cell( color_type background_color );