]> git.armaanb.net Git - st.git/commitdiff
Revert "Optimize memory footprint of line buffers"
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 3 Jun 2015 06:07:55 +0000 (08:07 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 3 Jun 2015 06:07:55 +0000 (08:07 +0200)
This reverts commit 7ab6c92e18d468968811256e808b02309c160a22.
We need 32 bits for real color support.

st.c

diff --git a/st.c b/st.c
index 3460a37c6a038d46e5afdac4a78072491abca73b..3dd5caf876d91a104e79234ed9c5114a97a8620c 100644 (file)
--- a/st.c
+++ b/st.c
@@ -191,8 +191,8 @@ typedef XftColor Color;
 typedef struct {
        Rune u;           /* character code */
        ushort mode;      /* attribute flags */
-       ushort fg;        /* foreground  */
-       ushort bg;        /* background  */
+       uint32_t fg;      /* foreground  */
+       uint32_t bg;      /* background  */
 } Glyph;
 
 typedef Glyph *Line;