Re: [hackers] [st] st-alpha-0.7.diff not working

From: vinícius mota <vcmota78_AT_gmail.com>
Date: Tue, 21 Nov 2017 21:59:50 -0200

Thank you very much Martin for your kind reply!

But I still cant make it work, Gentoo fails when applying the patch,
apparently because of the lines below

diff --git a/st.h b/st.h
index 44d4938..11a8174 100644
--- a/st.h
+++ b/st.h
_AT__AT_ -2,6 +2,7 @@

 /* Arbitrary sizes */
 #define UTF_SIZ 4
+#define OPAQUE 0xff

 /* macros */
 #define MIN(a, b) ((a) < (b) ? (a) : (b))
_AT__AT_ -17,6 +18,8 @@
                                 (t1.tv_nsec-t2.tv_nsec)/1E6)
 #define MODBIT(x, set, bit) ((set) ? ((x) |= (bit)) : ((x) &= ~(bit)))

+#define USE_ARGB (alpha != OPAQUE && opt_embed == NULL)
+
 #define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b))
 #define IS_TRUECOL(x) (1 << 24 & (x))

_AT__AT_ -134,6 +137,7 @@ typedef struct {
         int w, h; /* window width and height */
         int ch; /* char height */
         int cw; /* char width */
+ int depth; /* bit depth */
         char state; /* focus, redraw, visible */
         int cursor; /* cursor style */
 } TermWindow;


which exists in your copy but is not present in st-alpha-0.7.diff from
https://st.suckless.org/patches/alpha/. (Very very very very very) noob
question: what is the difference between files config.def.h and st.h?
Because in gentoo I only see st-0.7, which I have been assuming to be
config.def.h.

Thank you again!

On Mon, Nov 20, 2017 at 5:22 PM, Martin Kühne <mysatyre_AT_gmail.com> wrote:

> I'm maintaining my copy of the patch on
> https://github.com/mar77i/dotfiles/tree/master/abs/st-git
>
> cheers!
> mar77i
>
>
Received on Wed Nov 22 2017 - 00:59:50 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 22 2017 - 01:00:28 CET